Replace defines with constexpr in ishift
[alexxy/gromacs.git] / src / gromacs / domdec / domdec_specatomcomm.cpp
index 5a87c7d339c857fb3d61dfa8823ef0d6caebb19b..948041d7d789f881792e744b5c27f85c5dd4cbbc 100644 (file)
@@ -112,7 +112,7 @@ void dd_move_f_specat(const gmx_domdec_t* dd, gmx_domdec_specat_comm_t* spac, rv
                 {
                     clear_ivec(vis);
                     vis[dim] = (dir == 0 ? 1 : -1);
-                    int is   = IVEC2IS(vis);
+                    int is   = gmx::ivecToShiftIndex(vis);
                     if (!bScrew)
                     {
                         /* Sum and add to shift forces */