From 334c90fc21ea83cc00ba3a5a25d73af14c3c5fec Mon Sep 17 00:00:00 2001 From: pscrozi Date: Tue, 2 Oct 2012 19:51:15 +0000 Subject: [PATCH] Small bug fix for MSM. git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8859 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/KSPACE/msm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/KSPACE/msm.cpp b/src/KSPACE/msm.cpp index d0676f269a..5a77ce4085 100644 --- a/src/KSPACE/msm.cpp +++ b/src/KSPACE/msm.cpp @@ -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++];