Replace defines with constexpr in ishift
[alexxy/gromacs.git] / src / gromacs / listed_forces / pairs.cpp
index 43d292b6fc2bb166652e94b80fb4e6a9a4a7294d..0f4bef271474ade17481be5fa35646e764990ace 100644 (file)
@@ -483,7 +483,7 @@ static real do_pairs_general(int                 ftype,
         }
         else
         {
-            fshift_index = CENTRAL;
+            fshift_index = c_centralShiftIndex;
             rvec_sub(x[ai], x[aj], dx);
         }
         r2 = norm2(dx);
@@ -553,10 +553,10 @@ static real do_pairs_general(int                 ftype,
 
         if (computeVirial(flavor))
         {
-            if (fshift_index != CENTRAL)
+            if (fshift_index != c_centralShiftIndex)
             {
                 rvec_inc(fshift[fshift_index], dx);
-                rvec_dec(fshift[CENTRAL], dx);
+                rvec_dec(fshift[c_centralShiftIndex], dx);
             }
         }
     }