Increase const correctness in gmx_pme_send_parameters
[alexxy/gromacs.git] / src / gromacs / mdlib / sim_util.cpp
index 3b8ef341de4fd10540e2d247bd4bdb08841500e0..f62bbfe8ff70dd17b9feda575b1bfb831402c8b2 100644 (file)
@@ -1347,7 +1347,7 @@ void do_force(FILE*                               fplog,
         gmx_pme_send_coordinates(fr,
                                  cr,
                                  box,
-                                 as_rvec_array(x.unpaddedArrayRef().data()),
+                                 x.unpaddedArrayRef(),
                                  lambda[static_cast<int>(FreeEnergyPerturbationCouplingType::Coul)],
                                  lambda[static_cast<int>(FreeEnergyPerturbationCouplingType::Vdw)],
                                  (stepWork.computeVirial || stepWork.computeEnergy),