Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / mdlib / vcm.cpp
index b34bbdef355bca1c2f4f9c12c44720be51a48847..63a3df664a2855772605ccb429a10c131ae6b91a 100644 (file)
@@ -280,7 +280,7 @@ static void doStopComMotionLinear(const t_mdatoms& mdatoms, gmx::ArrayRef<gmx::R
         }
     }
     else if (group_id == nullptr)
-    {
+    { // NOLINT bugprone-branch-clone This is actually a clang-tidy bug
 #pragma omp for schedule(static)
         for (int i = 0; i < homenr; i++)
         {
@@ -324,6 +324,7 @@ static void doStopComMotionAccelerationCorrection(int                      homen
 {
     const real xCorrectionFactor = 0.5 * vcm.timeStep;
 
+    // NOLINTNEXTLINE bugprone-branch-clone This is actually a clang-tidy bug
     if (group_id == nullptr)
     {
 #pragma omp for schedule(static)