enable command line option cheking in mdrun
authorSzilard Pall <pszilard@cbr.su.se>
Thu, 12 Apr 2012 15:13:59 +0000 (17:13 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Sun, 15 Apr 2012 22:08:39 +0000 (00:08 +0200)
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

index 012a330c92d6932f9bfa8f52ed32286c15c62f47..81b8a4ee3f48930654b42f62d0bb8b9130799293 100644 (file)
@@ -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