More const ref in shellfc
[alexxy/gromacs.git] / src / gromacs / modularsimulator / forceelement.cpp
index 48fa24754d18f97871a9de6f0335f1e1abbabf6c..77565e161c3f83475c1e4854d3f87b72ba43f5fd 100644 (file)
@@ -130,7 +130,7 @@ ForceElement::ForceElement(StatePropagatorData*        statePropagatorData,
     {
         // This was done in mdAlgorithmsSetupAtomData(), but shellfc
         // won't be available outside this element.
-        make_local_shells(cr, mdAtoms->mdatoms(), shellfc_);
+        make_local_shells(cr, *mdAtoms->mdatoms(), shellfc_);
     }
 }
 
@@ -216,7 +216,7 @@ void ForceElement::run(Step step, Time time, unsigned int flags)
                             hist,
                             &forces,
                             force_vir,
-                            mdAtoms_->mdatoms(),
+                            *mdAtoms_->mdatoms(),
                             nrnb_,
                             wcycle_,
                             shellfc_,