Also use DD partitioning in serial
[alexxy/gromacs.git] / src / gromacs / nbnxm / gridset.cpp
index c3a1a7ec269539e73cc67d35fcadf95ac075206d..a301092e368aa1b9eb91179327f61d35d248330e 100644 (file)
@@ -83,7 +83,8 @@ GridSet::DomainSetup::DomainSetup(const PbcType             pbcType,
                                   const gmx_domdec_zones_t* ddZones) :
     pbcType(pbcType),
     doTestParticleInsertion(doTestParticleInsertion),
-    haveMultipleDomains(numDDCells != nullptr),
+    haveMultipleDomains(numDDCells != nullptr
+                        && (*numDDCells)[XX] * (*numDDCells)[YY] * (*numDDCells)[ZZ] > 1),
     zones(ddZones)
 {
     for (int d = 0; d < DIM; d++)