Handle warninp correctly in xpm2ps and membed
commit8bb05c05cc921158c34a1073a71c43a7aae87d12
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 12 Dec 2016 03:28:35 +0000 (12 14:28 +1100)
committerRoland Schulz <roland.schulz@intel.com>
Thu, 15 Dec 2016 20:33:09 +0000 (15 21:33 +0100)
tree22352e06ef04a5cf00e731be2bb63662dcd49f80
parent3fc929a5158b91ee3dffc61b76b37693810b0757
Handle warninp correctly in xpm2ps and membed

The code should not (over)write the output file before checking for
errors. For membed, it is useful to require the user to fix issues in
their input file before we unilaterally over-write it.

Called done_warning where it was omitted, which in the case of membed
meant that errors were not fatal when they should be.

Change-Id: I3c87f6bd99691b12d66906df3cc9980373429439
src/gromacs/gmxana/gmx_xpm2ps.cpp
src/programs/mdrun/membed.cpp