From e6e1f4f675a2797f63e7d8893780edb58d056c11 Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Tue, 14 May 2019 07:23:14 -0700 Subject: fix mirror --- Source/Utils/WarpXUtil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Utils/WarpXUtil.cpp') 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 arr = mf[mfi].array(); // Set field to 0 between zmin and zmax ParallelFor(bx, -- cgit v1.2.3 From 7d45297529f91e5a97ea6515a3c80698a1f9772f Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Tue, 14 May 2019 07:24:06 -0700 Subject: cleaning --- Source/Utils/WarpXUtil.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/Utils/WarpXUtil.cpp') diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index 45b9d59f1..a5ea6d75a 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -118,8 +118,6 @@ 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 ( (zmax>zmin_box && zmin<=zmax_box) ){ Array4 arr = mf[mfi].array(); // Set field to 0 between zmin and zmax -- cgit v1.2.3