Replace DOMAINDECOMP macro by a renamed function
[alexxy/gromacs.git] / src / gromacs / restraint / restraintmdmodule.cpp
index bc4233cba39a8a5ece58c8a455e28b38ebb1e819..4e988dbd335c0231913d00d0e4408944e2e0318b 100644 (file)
@@ -115,7 +115,7 @@ void RestraintForceProvider::calculateForces(const ForceProviderInput& forceProv
     }
     // All ranks wait for the update to finish.
     // tMPI ranks are depending on structures that may have just been updated.
-    if (DOMAINDECOMP(&cr))
+    if (haveDDAtomOrdering(cr))
     {
         // Note: this assumes that all ranks are hitting this line, which is not generally true.
         // I need to find the right subcommunicator. What I really want is a _scoped_ communicator...