Small bug fix for MSM.

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8859 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
pscrozi 2012-10-02 19:51:15 +00:00
parent 6f746c8118
commit 334c90fc21
1 changed files with 2 additions and 2 deletions

View File

@ -2061,7 +2061,7 @@ void MSM::fillbrick_ad_peratom(int n)
k = 0;
for (iz = nzlo_out[n]; iz <= nzhi_out[n]; iz++)
for (iy = nylo_out[n]; iy <= nyhi_out[n]; iy++)
for (ix = nzlo_out[n]; ix < nxlo_in[n]; ix++) {
for (ix = nxlo_out[n]; ix < nxlo_in[n]; ix++) {
if (differentiation_flag || eflag_atom)
egridn[iz][iy][ix] = buf4[k++];
if (vflag_atom) {
@ -2277,7 +2277,7 @@ void MSM::fillbrick(int n)
k = 0;
for (iz = nzlo_out[n]; iz <= nzhi_out[n]; iz++)
for (iy = nylo_out[n]; iy <= nyhi_out[n]; iy++)
for (ix = nzlo_out[n]; ix < nxlo_in[n]; ix++) {
for (ix = nxlo_out[n]; ix < nxlo_in[n]; ix++) {
fxgridn[iz][iy][ix] = buf2[k++];
fygridn[iz][iy][ix] = buf2[k++];
fzgridn[iz][iy][ix] = buf2[k++];