Use more arrayref in listed forces sigatures
[alexxy/gromacs.git] / src / gromacs / listed_forces / listed_forces.cpp
index e8b92fc82b7dfa408f5df69f74cad165d23d643d..82b93fa3e2d256c89bee174e3a0792d876ff7dee 100644 (file)
@@ -66,6 +66,7 @@
 #include "gromacs/mdlib/force.h"
 #include "gromacs/mdlib/gmx_omp_nthreads.h"
 #include "gromacs/mdtypes/commrec.h"
+#include "gromacs/mdtypes/mdatom.h"
 #include "gromacs/mdtypes/fcdata.h"
 #include "gromacs/mdtypes/forceoutput.h"
 #include "gromacs/mdtypes/forcerec.h"
@@ -470,7 +471,7 @@ real calc_one_bond(int                           thread,
                           pbc,
                           lambda[static_cast<int>(efptFTYPE)],
                           &(dvdl[static_cast<int>(efptFTYPE)]),
-                          md,
+                          gmx::arrayRefFromArray(md->chargeA, md->nr),
                           fcd,
                           nullptr,
                           nullptr,
@@ -488,7 +489,7 @@ real calc_one_bond(int                           thread,
                                     pbc,
                                     lambda[static_cast<int>(efptFTYPE)],
                                     &(dvdl[static_cast<int>(efptFTYPE)]),
-                                    md,
+                                    gmx::arrayRefFromArray(md->chargeA, md->nr),
                                     fcd,
                                     fcd->disres,
                                     fcd->orires,