From f92f3a3d06051bede54c93ee7ce3ab63d1177ead Mon Sep 17 00:00:00 2001 From: Carsten Kutzner Date: Wed, 13 Feb 2013 12:41:46 +0100 Subject: [PATCH] Fixed the MPI recognition string in g_tune_pme 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/gmx_tune_pme.c b/src/tools/gmx_tune_pme.c index 014bc306a7..6df7510b00 100644 --- a/src/tools/gmx_tune_pme.c +++ b/src/tools/gmx_tune_pme.c @@ -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; -- 2.22.0