Add InteractionDefinitions
[alexxy/gromacs.git] / src / gromacs / mdlib / force.cpp
index 1c9c70707fff535a026b25f2a28cc7ea4ffff08b..48ba8975288b59023edf8173f304d8c62c41b3fd 100644 (file)
@@ -102,7 +102,7 @@ static void reduceEwaldThreadOuput(int nthreads, ewald_corr_thread_t* ewc_t)
 
 void do_force_lowlevel(t_forcerec*                         fr,
                        const t_inputrec*                   ir,
-                       const t_idef*                       idef,
+                       const InteractionDefinitions&       idef,
                        const t_commrec*                    cr,
                        const gmx_multisim_t*               ms,
                        t_nrnb*                             nrnb,
@@ -178,7 +178,7 @@ void do_force_lowlevel(t_forcerec*                         fr,
 
         /* Check whether we need to take into account PBC in listed interactions. */
         const auto needPbcForListedForces =
-                fr->bMolPBC && stepWork.computeListedForces && haveCpuListedForces(*fr, *idef, *fcd);
+                fr->bMolPBC && stepWork.computeListedForces && haveCpuListedForces(*fr, idef, *fcd);
         if (needPbcForListedForces)
         {
             /* Since all atoms are in the rectangular or triclinic unit-cell,