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
Merge branch 'master' into pygromacs
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
pp2shift.cpp
diff --git
a/src/gromacs/gmxana/pp2shift.cpp
b/src/gromacs/gmxana/pp2shift.cpp
index 0ca2c3ad7d7a1e66a4500e2d5a329ae0edba5845..8e761207dfc7b5cbace17828a99120703d8fe130 100644
(file)
--- a/
src/gromacs/gmxana/pp2shift.cpp
+++ b/
src/gromacs/gmxana/pp2shift.cpp
@@
-80,8
+80,8
@@
static real interpolate(real phi, real psi, t_shiftdata *sd)
fphi = phi*sd->dx;
fpsi = psi*sd->dy;
- iphi =
(int)fphi
;
- ipsi =
(int)fpsi
;
+ iphi =
static_cast<int>(fphi)
;
+ ipsi =
static_cast<int>(fpsi)
;
fphi -= iphi; /* Fraction (offset from gridpoint) */
fpsi -= ipsi;