From cd1584ea705f14d706c45803181a84193d5f9314 Mon Sep 17 00:00:00 2001 From: ckutzne Date: Fri, 19 Nov 2010 18:26:05 +0100 Subject: [PATCH] Fixed segv in gmx_pme_error when gromacs compiled with threads --- src/tools/gmx_pme_error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/gmx_pme_error.c b/src/tools/gmx_pme_error.c index d2baf690a6..c0396989d6 100644 --- a/src/tools/gmx_pme_error.c +++ b/src/tools/gmx_pme_error.c @@ -1080,7 +1080,8 @@ int gmx_pme_error(int argc,char *argv[]) cr = init_par(&argc,&argv); #ifdef GMX_MPI - MPI_Barrier(MPI_COMM_WORLD); + if (PAR(cr)) + MPI_Barrier(MPI_COMM_WORLD); #endif if (MASTER(cr)) -- 2.11.4.GIT