biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Replace defines with constexpr in ishift
[alexxy/gromacs.git]
/
src
/
gromacs
/
domdec
/
domdec_specatomcomm.cpp
diff --git
a/src/gromacs/domdec/domdec_specatomcomm.cpp
b/src/gromacs/domdec/domdec_specatomcomm.cpp
index 5a87c7d339c857fb3d61dfa8823ef0d6caebb19b..948041d7d789f881792e744b5c27f85c5dd4cbbc 100644
(file)
--- a/
src/gromacs/domdec/domdec_specatomcomm.cpp
+++ b/
src/gromacs/domdec/domdec_specatomcomm.cpp
@@
-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 */