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 remote-tracking branch 'gerrit/release-4-5-patches' into release-4-6
[alexxy/gromacs.git]
/
src
/
tools
/
gmx_msd.c
diff --git
a/src/tools/gmx_msd.c
b/src/tools/gmx_msd.c
index a529b1f3b00b360ed403b09bf9e7c4304e8cc4dc..c536fb845b7baed6c25b0af076ef2133352f6a36 100644
(file)
--- a/
src/tools/gmx_msd.c
+++ b/
src/tools/gmx_msd.c
@@
-400,6
+400,10
@@
static void prep_data(gmx_bool bMol,int gnx,atom_id index[],
for(m=DIM-1; m>=0; m--)
{
+ if (hbox[m] == 0)
+ {
+ continue;
+ }
while(xcur[ind][m]-xprev[ind][m] <= -hbox[m])
rvec_inc(xcur[ind],box[m]);
while(xcur[ind][m]-xprev[ind][m] > hbox[m])