Replace DOMAINDECOMP macro by a renamed function
[alexxy/gromacs.git] / src / gromacs / modularsimulator / simulatoralgorithm.cpp
index 2d127f41ef9fa84ca24c66cf03911ac515892ad9..5d07cc83aad163637f366749704de2e30e9ae487 100644 (file)
@@ -303,7 +303,7 @@ void ModularSimulatorAlgorithm::postStep(Step step, Time gmx_unused time)
     }
 
     double cycles = wallcycle_stop(wcycle, WallCycleCounter::Step);
-    if (DOMAINDECOMP(cr) && wcycle)
+    if (haveDDAtomOrdering(*cr) && wcycle)
     {
         dd_cycles_add(cr->dd, static_cast<float>(cycles), ddCyclStep);
     }
@@ -588,7 +588,7 @@ ModularSimulatorAlgorithm ModularSimulatorAlgorithmBuilder::build()
     registerWithInfrastructureAndSignallers(trajectoryElement.get());
 
     // Build domdec helper (free energy element is a client, so keep this after it is built)
-    if (DOMAINDECOMP(legacySimulatorData_->cr))
+    if (haveDDAtomOrdering(*legacySimulatorData_->cr))
     {
         algorithm.domDecHelper_ =
                 domDecHelperBuilder_.build(legacySimulatorData_->mdrunOptions.verbose,