Make the restraint history const during force calculation
[alexxy/gromacs.git] / src / gromacs / listed_forces / disre.h
index 7144dd0f125d71e60fd6f5501d1d97f64150c698..cbe81d778f5c71a8a0961feb02f95de8051d86bd 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
  * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,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.
@@ -103,7 +103,7 @@ void calc_disres_R_6(const t_commrec*      cr,
                      const rvec*           x,
                      const t_pbc*          pbc,
                      t_disresdata*         disresdata,
-                     history_t*            hist);
+                     const history_t*      hist);
 
 //! Calculates the distance restraint forces, return the potential.
 real ta_disres(int              nfa,