aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXUtil.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-14 07:23:14 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-05-14 07:23:14 -0700
commite6e1f4f675a2797f63e7d8893780edb58d056c11 (patch)
treee4d8eb4f6f856112c2e925646058793228478941 /Source/Utils/WarpXUtil.cpp
parentfeaa2f04451b660e38afd001a66b71f9007329c8 (diff)
downloadWarpX-e6e1f4f675a2797f63e7d8893780edb58d056c11.tar.gz
WarpX-e6e1f4f675a2797f63e7d8893780edb58d056c11.tar.zst
WarpX-e6e1f4f675a2797f63e7d8893780edb58d056c11.zip
fix mirror
Diffstat (limited to 'Source/Utils/WarpXUtil.cpp')
-rw-r--r--Source/Utils/WarpXUtil.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp
index 4ec7ebb51..45b9d59f1 100644
--- a/Source/Utils/WarpXUtil.cpp
+++ b/Source/Utils/WarpXUtil.cpp
@@ -118,8 +118,9 @@ void NullifyMF(amrex::MultiFab& mf, int lev, amrex::Real zmin, amrex::Real zmax)
const int lo_ind = bx.loVect()[1];
#endif
// Check if box intersect with [zmin, zmax]
- if ( (zmin>zmin_box && zmin<=zmax_box) ||
- (zmax>zmin_box && zmax<=zmax_box) ){
+ //if ( (zmin>zmin_box && zmin<=zmax_box) ||
+ // (zmax>zmin_box && zmax<=zmax_box) ){
+ if ( (zmax>zmin_box && zmin<=zmax_box) ){
Array4<Real> arr = mf[mfi].array();
// Set field to 0 between zmin and zmax
ParallelFor(bx,