diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 055e639fc..92ea26d13 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -1301,6 +1301,7 @@ WarpX::BuildBufferMasksInBox ( const Box tbx, Array4<int> &msk, const Array4<int for (int j = lo.y; j <= hi.y; ++j) { for (int i = lo.x; i <= hi.x; ++i) { setnull = false; + // If gmsk=0 for any neighbor with ng cells, current cell is in the buffer region for (int jj = j-ng; jj <= j+ng; ++jj) { for (int ii = i-ng; ii <= i+ng; ++ii) { if ( gmsk(ii,jj,k) == 0 ) setnull = true; @@ -1315,6 +1316,7 @@ WarpX::BuildBufferMasksInBox ( const Box tbx, Array4<int> &msk, const Array4<int for (int j = lo.y; j <= hi.y; ++j) { for (int i = lo.x; i <= hi.x; ++i) { setnull = false; + // If gmsk=0 for any neighbor with ng cells, current cell is in the buffer region for (int kk = k-ng; kk <= k+ng; ++kk) { for (int jj = j-ng; jj <= j+ng; ++jj) { for (int ii = i-ng; ii <= i+ng; ++ii) { |