Make the restraint history const during force calculation
[alexxy/gromacs.git] / src / gromacs / listed_forces / listed_forces.h
index c044baf11730375ab30db3a15b08b902bdfadfb8..4bed406827c1f7780c7332191d8f50cb27e15f48 100644 (file)
@@ -2,7 +2,7 @@
  * This file is part of the GROMACS molecular simulation package.
  *
  * Copyright (c) 2014,2015,2016,2017,2018 by the GROMACS development team.
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -193,7 +193,7 @@ public:
                    gmx::ArrayRefWithPadding<const gmx::RVec> coordinates,
                    gmx::ArrayRef<const gmx::RVec>            xWholeMolecules,
                    t_fcdata*                                 fcdata,
-                   history_t*                                hist,
+                   const history_t*                          hist,
                    gmx::ForceOutputs*                        forceOutputs,
                    const t_forcerec*                         fr,
                    const struct t_pbc*                       pbc,