Replace defines with constexpr in ishift
[alexxy/gromacs.git] / src / gromacs / domdec / domdec.cpp
index d941620c1214fe3b8caf0e6a674977c975eee478..8bec7e2409ae6ab005b135b80fe086769c868611 100644 (file)
@@ -371,7 +371,7 @@ void dd_move_f(gmx_domdec_t* dd, gmx::ForceWithShiftForces* forceWithShiftForces
         /* Determine which shift vector we need */
         ivec vis        = { 0, 0, 0 };
         vis[dd->dim[d]] = 1;
-        const int is    = IVEC2IS(vis);
+        const int is    = gmx::ivecToShiftIndex(vis);
 
         /* Loop over the pulses */
         const gmx_domdec_comm_dim_t& cd = comm.cd[d];