aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Maxence Thevenet <mthevenet@lbl.gov> 2018-10-03 14:59:30 -0700
committerGravatar Maxence Thevenet <mthevenet@lbl.gov> 2018-10-03 14:59:30 -0700
commitc669619caa759191a6a72e8425954e7b2616f48a (patch)
tree335ee2c09e99ee1d151c2ad272138fd0258497d6 /Source/WarpX.cpp
parentfe08f1bab97b487a63f9aa054b1f10b3b2edcfb7 (diff)
downloadWarpX-c669619caa759191a6a72e8425954e7b2616f48a.tar.gz
WarpX-c669619caa759191a6a72e8425954e7b2616f48a.tar.zst
WarpX-c669619caa759191a6a72e8425954e7b2616f48a.zip
fix bug guard cell number
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 16c543092..0eab65582 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -512,12 +512,9 @@ WarpX::AllocLevelData (int lev, const BoxArray& ba, const DistributionMapping& d
#if (AMREX_SPACEDIM == 3)
IntVect ngE(ngx,ngy,ngz);
IntVect ngJ(ngx,ngy,ngz_nonci);
- IntVect ngRho = ngJ + 1; // One extra ghost cell, so that it's safe to deposit charge density
- // after pushing particle.
#elif (AMREX_SPACEDIM == 2)
IntVect ngE(ngx,ngz);
IntVect ngJ(ngx,ngz_nonci);
- IntVect ngRho = ngJ + 1;
#endif
IntVect ngRho = ngJ+1; //One extra ghost cell, so that it's safe to deposit charge density