Add InteractionDefinitions
[alexxy/gromacs.git] / src / gromacs / mdrun / shellfc.cpp
index 68ea3d0fe360e3e594fd9c35db47fef7e23fccb0..d93e12a8cfc305201e49dfcb62931c6c628474ec 100644 (file)
@@ -943,7 +943,7 @@ void relax_shell_flexcon(FILE*                         fplog,
     ArrayRef<t_shell> shells       = shfc->shells;
     const int         nflexcon     = shfc->nflexcon;
 
-    const t_idef* idef = &top->idef;
+    const InteractionDefinitions& idef = top->idef;
 
     if (DOMAINDECOMP(cr))
     {
@@ -1102,7 +1102,7 @@ void relax_shell_flexcon(FILE*                         fplog,
         if (vsite)
         {
             construct_vsites(vsite, as_rvec_array(pos[Min].data()), inputrec->delta_t,
-                             as_rvec_array(v.data()), idef->iparams, idef->il, fr->pbcType,
+                             as_rvec_array(v.data()), idef.iparams, idef.il, fr->pbcType,
                              fr->bMolPBC, cr, box);
         }