Made g_tune_pme work with 4.6 if user sets "-p" command line option
[alexxy/gromacs.git] / src / tools / gmx_tune_pme.c
index 6df7510b008737a38446cc147f225f086e1364b4..4d4cd760020f7b8ab91dd565acb075f2800fc7a7 100644 (file)
@@ -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;
     }