Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / mdlib / tests / leapfrog.cpp
index abfe31c3ab017285d38c2ec8e67c93cdcf0f0b75..1a03709ac6e3f1fb1d67e027656092c2c45df688 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2019, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020, 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.
@@ -165,9 +165,9 @@ public:
      * \param[in]  testData   Test data object
      * \param[in]  totalTime  Total numerical integration time
      */
-    void testAgainstAnalyticalSolution(FloatingPointTolerance  tolerance,
-                                       const LeapFrogTestData& testData,
-                                       const real              totalTime)
+    static void testAgainstAnalyticalSolution(FloatingPointTolerance  tolerance,
+                                              const LeapFrogTestData& testData,
+                                              const real              totalTime)
     {
         for (int i = 0; i < testData.numAtoms_; i++)
         {