From: Carsten Kutzner Date: Fri, 15 Feb 2013 10:51:09 +0000 (+0100) Subject: Made g_tune_pme work with 4.6 if user sets "-p" command line option X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=6942bd5b1d57ce6c2d0c00a5c5eba2198828a96c;p=alexxy%2Fgromacs.git Made g_tune_pme work with 4.6 if user sets "-p" command line option Added "-p" (performance statistics log file) to the list of files that must not appear on the mdrun command line at launch time. (This would lead mdrun to refuse to launch due to an unknown command line option.) Change-Id: I268bbf6513709866b9a6a8d81c97706ccc832988 --- diff --git a/src/tools/gmx_tune_pme.c b/src/tools/gmx_tune_pme.c index 6df7510b00..4d4cd76002 100644 --- a/src/tools/gmx_tune_pme.c +++ b/src/tools/gmx_tune_pme.c @@ -1741,9 +1741,10 @@ static void check_input( /* Returns TRUE when "opt" is needed at launch time */ static gmx_bool is_launch_file(char *opt, gmx_bool bSet) { - /* Apart from the input .tpr and the error log we need all options that were set - * on the command line and that do not start with -b */ - if (0 == strncmp(opt, "-b", 2) || 0 == strncmp(opt, "-s", 2) || 0 == strncmp(opt, "-err", 4)) + /* Apart from the input .tpr and the output log files we need all options that + * were set on the command line and that do not start with -b */ + if (0 == strncmp(opt, "-b" , 2) || 0 == strncmp(opt, "-s", 2) + || 0 == strncmp(opt, "-err", 4) || 0 == strncmp(opt, "-p", 2) ) { return FALSE; }