Move functionality to mdrunutility
[alexxy/gromacs.git] / src / gromacs / mdrun / rerun.cpp
index f04e70228b0fc7928926de6cf80440f496046ef3..92566ef2b3fa14e0a2033f0c1989cdeaa0cbdee7 100644 (file)
@@ -96,6 +96,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"
@@ -685,7 +686,7 @@ void gmx::Integrator::do_rerun()
         }
 
         /* Print the remaining wall clock time for the run */
-        if (isMasterSimMasterRank(ms, cr) &&
+        if (isMasterSimMasterRank(ms, MASTER(cr)) &&
             (mdrunOptions.verbose || gmx_got_usr_signal()))
         {
             if (shellfc)