From: Szilard Pall Date: Thu, 12 Apr 2012 15:13:59 +0000 (+0200) Subject: enable command line option cheking in mdrun X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=5a784fffabd82edfa3f71375150ee82e73352174;p=alexxy%2Fgromacs.git enable command line option cheking in mdrun Command line option checking has been disabled in mdrun. This can cause unexpected issues e.g. when mdrun disregards an option with a typo. Note that a few tools (g_tune_pme, g_pme_error, and g_membed) also omit option checking, but these either rely on this "feature" or are in process of rewriting/fixing for 4.6 which will implement the checkin. refs #922 Change-Id: I855c2dc0f2ebb09edfce92eb4a7b63fa144a5f4d --- diff --git a/src/kernel/mdrun.c b/src/kernel/mdrun.c index 012a330c92..81b8a4ee3f 100644 --- a/src/kernel/mdrun.c +++ b/src/kernel/mdrun.c @@ -518,10 +518,8 @@ int main(int argc,char *argv[]) if (MASTER(cr)) CopyRight(stderr, argv[0]); - PCA_Flags = (PCA_KEEP_ARGS | PCA_NOEXIT_ON_ARGS | PCA_CAN_SET_DEFFNM - | (MASTER(cr) ? 0 : PCA_QUIET)); + PCA_Flags = (PCA_CAN_SET_DEFFNM | (MASTER(cr) ? 0 : PCA_QUIET)); - /* Comment this in to do fexist calls only on master * works not with rerun or tables at the moment * also comment out the version of init_forcerec in md.c