Replace DOMAINDECOMP macro by a renamed function
[alexxy/gromacs.git] / src / gromacs / modularsimulator / firstorderpressurecoupling.cpp
index ed9363d8ec5e05e8781acff8eff514ff21d6e3ae..4499d6ed472ffcb4b1b884a9e37036efac07e79f 100644 (file)
@@ -187,7 +187,7 @@ void FirstOrderPressureCoupling::restoreCheckpointState(std::optional<ReadCheckp
     {
         doCheckpointData<CheckpointDataOperation::Read>(&checkpointData.value());
     }
-    if (DOMAINDECOMP(cr))
+    if (haveDDAtomOrdering(*cr))
     {
         dd_bcast(cr->dd, sizeof(conservedEnergyContribution_), &conservedEnergyContribution_);
         dd_bcast(cr->dd, sizeof(conservedEnergyContributionStep_), &conservedEnergyContributionStep_);