From 5a342c7fb5331f2b4e91cea2b8ec2d50ebeca119 Mon Sep 17 00:00:00 2001 From: Carsten Kutzner Date: Fri, 14 Jun 2013 14:06:28 +0200 Subject: [PATCH] Fixed -npstring command line argument in g_tune_pme -npstring is used to let g_tune_pme know how it should specify the number of MPI processes to the mpirun command (with -np (default) or -n ). You could provide it, but it actually -np was used in any case. Change-Id: Ibb807b492dfb05c67628c18b7073092aa983f770 --- src/tools/gmx_tune_pme.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/tools/gmx_tune_pme.c b/src/tools/gmx_tune_pme.c index 0563cffa6a..d944f6d40e 100644 --- a/src/tools/gmx_tune_pme.c +++ b/src/tools/gmx_tune_pme.c @@ -2280,7 +2280,16 @@ int gmx_tune_pme(int argc, char *argv[]) } else { - sprintf(bbuf, " -np %d ", nnodes); + /* This string will be used for MPI runs and will appear after the + * mpirun command. */ + if (strcmp(procstring[0], "none") != 0) + { + sprintf(bbuf, " %s %d ", procstring[0], nnodes); + } + else + { + sprintf(bbuf, " "); + } } cmd_np = bbuf; -- 2.22.0