Merge release-4-6 into master
[alexxy/gromacs.git] / src / gromacs / gmxlib / gmx_fatal.c
index e45bbfb0d3feb97a53a8e25ff0347b84be9b9263..510ff1aab718e8fab631297814b4f11050405147 100644 (file)
@@ -216,6 +216,7 @@ static void quit_gmx(const char *msg)
     }
 
 #ifdef GMX_LIB_MPI
+    if (gmx_mpi_initialized())
     {
         int  nnodes;
         int  noderank;