Make the restraint history const during force calculation
[alexxy/gromacs.git] / src / gromacs / mdlib / sim_util.cpp
index 2494b02c6b529ad2b2034d70b3d8df18b6603490..0ed4399e70ec720d0ab6f14fd5f3484f68a3faf4 100644 (file)
@@ -1168,7 +1168,7 @@ void do_force(FILE*                               fplog,
               const gmx_localtop_t*               top,
               const matrix                        box,
               gmx::ArrayRefWithPadding<gmx::RVec> x,
-              history_t*                          hist,
+              const history_t*                    hist,
               gmx::ForceBuffersView*              forceView,
               tensor                              vir_force,
               const t_mdatoms*                    mdatoms,