From 5a784fffabd82edfa3f71375150ee82e73352174 Mon Sep 17 00:00:00 2001 From: Szilard Pall Date: Thu, 12 Apr 2012 17:13:59 +0200 Subject: [PATCH] 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 --- src/kernel/mdrun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.22.0