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
Fix clang-tidy warnings for clang 7
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
gmx_dipoles.cpp
diff --git
a/src/gromacs/gmxana/gmx_dipoles.cpp
b/src/gromacs/gmxana/gmx_dipoles.cpp
index 5fe85b58a243989c9fe8c4818ff249beb3d91ab5..095aa2da37d3f309a5a4f725d0e7f9754ec794e0 100644
(file)
--- a/
src/gromacs/gmxana/gmx_dipoles.cpp
+++ b/
src/gromacs/gmxana/gmx_dipoles.cpp
@@
-137,7
+137,7
@@
static void done_gkrbin(t_gkrbin **gb)
static void add2gkr(t_gkrbin *gb, real r, real cosa, real phi)
{
- int cy, index =
std::round
(r/gb->spacing);
+ int cy, index =
gmx::roundToInt
(r/gb->spacing);
real alpha;
if (index < gb->nelem)