Move functionality to mdrunutility
[alexxy/gromacs.git] / src / gromacs / mdrun / md.cpp
index fb4ee760533db383bdf3fab13bd7f580222ffc8c..76ad256caef2a90a8483e4485a10fdb93a4cff82 100644 (file)
@@ -98,6 +98,7 @@
 #include "gromacs/mdlib/update.h"
 #include "gromacs/mdlib/vcm.h"
 #include "gromacs/mdlib/vsite.h"
+#include "gromacs/mdrunutility/multisim.h"
 #include "gromacs/mdrunutility/printtime.h"
 #include "gromacs/mdtypes/awh_history.h"
 #include "gromacs/mdtypes/awh_params.h"
@@ -1405,7 +1406,7 @@ void gmx::Integrator::do_md()
             state->fep_state = lamnew;
         }
         /* Print the remaining wall clock time for the run */
-        if (isMasterSimMasterRank(ms, cr) &&
+        if (isMasterSimMasterRank(ms, MASTER(cr)) &&
             (do_verbose || gmx_got_usr_signal()) &&
             !bPMETunePrinting)
         {