git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9414 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2013-02-08 18:14:19 +00:00
parent a62be73ba7
commit 8f797a3e2f
1 changed files with 4 additions and 4 deletions

View File

@ -1182,8 +1182,8 @@ void FixAveSpatial::atom2bin3d()
zremap = x[i][kdim]; zremap = x[i][kdim];
if (periodicity[kdim]) { if (periodicity[kdim]) {
if (zremap < boxlo[kdim]) yremap += prd[kdim]; if (zremap < boxlo[kdim]) zremap += prd[kdim];
if (zremap >= boxhi[kdim]) yremap -= prd[kdim]; if (zremap >= boxhi[kdim]) zremap -= prd[kdim];
} }
i3bin = static_cast<int> ((zremap - offset[2]) * invdelta[2]); i3bin = static_cast<int> ((zremap - offset[2]) * invdelta[2]);
i3bin = MAX(i3bin,0); i3bin = MAX(i3bin,0);
@ -1226,8 +1226,8 @@ void FixAveSpatial::atom2bin3d()
i2bin = MIN(i2bin,nlayer2m1); i2bin = MIN(i2bin,nlayer2m1);
if (periodicity[kdim]) { if (periodicity[kdim]) {
if (zremap < boxlo[kdim]) yremap += prd[kdim]; if (zremap < boxlo[kdim]) zremap += prd[kdim];
if (zremap >= boxhi[kdim]) yremap -= prd[kdim]; if (zremap >= boxhi[kdim]) zremap -= prd[kdim];
} }
i3bin = static_cast<int> ((zremap - offset[2]) * invdelta[2]); i3bin = static_cast<int> ((zremap - offset[2]) * invdelta[2]);
i3bin = MAX(i3bin,0); i3bin = MAX(i3bin,0);