Fixed g_tune_pme assumption that MPI is available
commitb8c79db25cc22892257b917ce1f0b10d57e68ac6
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 9 Aug 2013 15:36:02 +0000 (9 17:36 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 19 Sep 2013 08:27:36 +0000 (19 10:27 +0200)
treeddf52ef481faff5211f48daf913022fcf446d2d7
parent47b51d55f31f053920fc2edd3d0d22fa3f621fbd
Fixed g_tune_pme assumption that MPI is available

Refactored function with two distinct parts into two functions. This
makes it easy to call the part that checks that mdrun works only when
that check is necessary. Now g_tune_pme -np 512 -nobench works on
machines like BlueGene/Q where you might only be able to get the MPI
environment via the queuing system. g_tune_pme -nobench should work as
a stand-alone.

Fixes #1319

Change-Id: I7237800a1c67664c9253e5422a7b3f12f4ebd62f
src/tools/gmx_tune_pme.c