Made gromacs work again without MPI
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.cpp
index 8c3fbdf517855a22e7f5e9689a515619c193e7c5..3bf1d5071cd6d9d21bb56dd62ad182f178488c99 100644 (file)
@@ -937,7 +937,7 @@ int Mdrunner::mdrunner()
         // master and spawned threads joins at the end of this block.
     }
 
-    GMX_RELEASE_ASSERT(ms || simulationCommunicator != MPI_COMM_NULL,
+    GMX_RELEASE_ASSERT(!GMX_MPI || ms || simulationCommunicator != MPI_COMM_NULL,
                        "Must have valid communicator unless running a multi-simulation");
     CommrecHandle crHandle = init_commrec(simulationCommunicator);
     t_commrec*    cr       = crHandle.get();