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 part of old-style casting
[alexxy/gromacs.git]
/
src
/
gromacs
/
gmxana
/
gmx_order.cpp
diff --git
a/src/gromacs/gmxana/gmx_order.cpp
b/src/gromacs/gmxana/gmx_order.cpp
index fe804b62e6c61357c4a8346bd23a5d5b8c223c7e..1c0ee1af42f52a08259f3517af688a32c619c020 100644
(file)
--- a/
src/gromacs/gmxana/gmx_order.cpp
+++ b/
src/gromacs/gmxana/gmx_order.cpp
@@
-637,7
+637,7
@@
static void calc_order(const char *fn, const int *index, int *a, rvec **order,
z1 = x1[a[index[i-1]+j]][axis];
z2 = x1[a[index[i+1]+j]][axis];
z_ave = 0.5 * (z1 + z2);
- slice =
(int)
((nslices*z_ave)/box[axis][axis]);
+ slice =
static_cast<int>
((nslices*z_ave)/box[axis][axis]);
while (slice < 0)
{
slice += nslices;