Merge branch origin/release-2020 into master
[alexxy/gromacs.git] / src / gromacs / modularsimulator / modularsimulator.cpp
index 353ea9c00e7d4090339ba5ac5d5c09df249b9853..7176aa2294b87127c7cefd7cabe4914290803966 100644 (file)
@@ -539,7 +539,7 @@ ModularSimulator::buildForces(SignallerBuilder<NeighborSearchSignaller>* neighbo
     const bool isVerbose    = mdrunOptions.verbose;
     const bool isDynamicBox = inputrecDynamicBox(inputrec);
     // Check for polarizable models and flexible constraints
-    if (ShellFCElement::doShellsOrFlexConstraints(&topologyHolder_->globalTopology(),
+    if (ShellFCElement::doShellsOrFlexConstraints(topologyHolder_->globalTopology(),
                                                   constr ? constr->numFlexibleConstraints() : 0))
     {
         auto shellFCElement = std::make_unique<ShellFCElement>(