Merge remote branch 'origin/release-4-5-patches'
[alexxy/gromacs.git] / src / tools / gmx_pme_error.c
index 7842556f61e982f15bf6e16efa10d0b01d325c1f..0ebf027eccb3cbcc7e6f266f56cb2f5e3caaed37 100644 (file)
@@ -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))