Make inputrec const at simulator level (leaves some TODOs)
[alexxy/gromacs.git] / src / gromacs / mdrun / isimulator.h
index 86ea3279a8ae7ebc7e7aed3aae894f93034e5fd4..e6957b97fbb3128958a28a3da991727e01964ff5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * 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.
@@ -210,8 +210,8 @@ public:
     IMDOutputProvider* outputProvider;
     //! Handles notifications to MdModules for checkpoint writing
     const MdModulesNotifier& mdModulesNotifier;
-    //! Contains user input mdp options.
-    t_inputrec* inputrec;
+    //! Contains user input mdp options. Note: The const-ness is casted away in a few instances, see #3854.
+    const t_inputrec* inputrec;
     //! The Interactive Molecular Dynamics session.
     ImdSession* imdSession;
     //! The pull work object.