Use const ref to inputrec in do_force
[alexxy/gromacs.git] / src / gromacs / modularsimulator / forceelement.cpp
index fb1978578cc9f8f9921cdd0dd7a8c98ff458eb72..9b4fb32536c74f2ba60f5b18fb54bd8eae186f4a 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.
@@ -237,7 +237,7 @@ void ForceElement::run(Step step, Time time, unsigned int flags)
         do_force(fplog_,
                  cr_,
                  ms,
-                 inputrec_,
+                 *inputrec_,
                  awh,
                  enforcedRotation_,
                  imdSession_,