Made the linear extrapolation in g_bar non-default behavior
commit3ec1eb14d43512d8379f396bb57213c1c93ad33b
authorSander Pronk <pronk@kth.se>
Thu, 22 Nov 2012 17:28:02 +0000 (22 18:28 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 26 Nov 2012 13:42:26 +0000 (26 14:42 +0100)
treecba7bf9bfb0749e72f3b6b28bea9f200853321c8
parentbd484d398b483beae6c48224106c809b4f825895
Made the linear extrapolation in g_bar non-default behavior

g_bar currently resorts to linear extrapolation of dH/dl if
it doesn't find covering foreign lambda deltaH values. This is
dangerous because the most likely case of this being used is when
the user forgets to set foreign lambdas.

This commit adds an option -extp to g_bar that the user must
explictily set to enable the linear extrapolation. If not, and
there is no foreign_lambda path, g_bar prints an error message
with details of what to do.

Change-Id: Ib39f964b4f43f79379f00a3331ea4dc88183ed63
src/tools/gmx_bar.c