Fixed the MPI recognition string in g_tune_pme
authorCarsten Kutzner <ckutzne@gwdg.de>
Wed, 13 Feb 2013 11:41:46 +0000 (12:41 +0100)
committerCarsten Kutzner <ckutzne@gwdg.de>
Wed, 13 Feb 2013 11:41:46 +0000 (12:41 +0100)
Since the identifying string "NNODES="is not printed any more by MPI-enabled
mdrun, we now use the "MPI library:" string instead.

Change-Id: Ibbcc0678a7c89057743129aa664fad8bb68f1941

src/tools/gmx_tune_pme.c

index 014bc306a740f17e09253190849d6e231fe88dcb..6df7510b008737a38446cc147f225f086e1364b4 100644 (file)
@@ -600,7 +600,10 @@ static void get_program_paths(gmx_bool bThreads, char *cmd_mpirun[], char cmd_np
     const char def_mpirun[]   = "mpirun";
     const char def_mdrun[]    = "mdrun";
     const char filename[]     = "benchtest.log";
-    const char match_mpi[]    = "NNODES=";
+
+    /* This string should always be identical to the one in copyrite.c,
+     * gmx_print_version_info() in the defined(GMX_MPI) section */
+    const char match_mpi[]    = "MPI library:        MPI";
     const char match_mdrun[]  = "Program: ";
     const char empty_mpirun[] = "";
     gmx_bool   bMdrun         = FALSE;