Fix task assignment with multiruns
[alexxy/gromacs.git] / src / gromacs / mdrun / runner.h
index 21f8317c790741ad68fd6b97c76310b6e0fcb762..9f5790b9004bafa147b90039c4ac5d8c1ef3868d 100644 (file)
@@ -261,6 +261,13 @@ private:
     //! \brief Non-owning handle to file used for logging.
     t_fileio* logFileHandle = nullptr;
 
+    /*! \brief Non-owning handle to world communication data structure for task assigment.
+     *
+     * With real MPI, gets a value from the SimulationContext
+     * supplied to the MdrunnerBuilder. With thread-MPI gets a
+     * value after threads have been spawned. */
+    MPI_Comm worldCommunicator = MPI_COMM_NULL;
+
     /*! \brief Non-owning handle to communication data structure.
      *
      * With real MPI, gets a value from the SimulationContext