Remove forcerec from ewald_charge_correction
[alexxy/gromacs.git] / src / gromacs / mdlib / force.cpp
index a939841283a504e4231d7bf914b51128adb81464..8f07ca623113671f55b66c0b7107b417e1bc00e2 100644 (file)
@@ -195,7 +195,9 @@ void calculateLongRangeNonbondeds(t_forcerec*                    fr,
                    negligible and constant-sized amount of time */
                 ewaldOutput.Vcorr_q += ewald_charge_correction(
                         cr,
-                        fr,
+                        fr->ic->epsilon_r,
+                        fr->ic->ewaldcoeff_q,
+                        fr->qsum,
                         lambda[static_cast<int>(FreeEnergyPerturbationCouplingType::Coul)],
                         box,
                         &ewaldOutput.dvdl[FreeEnergyPerturbationCouplingType::Coul],