aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2020-05-01 16:44:35 -0700
committerGravatar GitHub <noreply@github.com> 2020-05-01 16:44:35 -0700
commit26d6358d3c7aff7b4310af34fc771d5c8f2628fe (patch)
treea152e03b2224c5b420ab99e8f8bb6cb40aa40ef7 /Source/Particles/WarpXParticleContainer.cpp
parented8fdc9ca97aa51c522549c565dda4123c679eba (diff)
downloadWarpX-26d6358d3c7aff7b4310af34fc771d5c8f2628fe.tar.gz
WarpX-26d6358d3c7aff7b4310af34fc771d5c8f2628fe.tar.zst
WarpX-26d6358d3c7aff7b4310af34fc771d5c8f2628fe.zip
Do not rely on nodal flags (#931)
* Start removing nodal flags where possible * Remove additional nodal flags * Clean up getFieldNodalFlagData in Python wrappers * Remove nodal flags from PML files * Revert "Remove nodal flags from PML files" This reverts commit 1d58519f9cee2e64df811f76f3d8a0aead1aa4ef. * Fix issue when removing nodal flags from PML files * Remove nodal flags from (OLD) slice diagnostics * Nodal flags are now local variables in WarpX::AllocLevelMFs * Trigger Travis CI build after AMReX bug fix * Void commit: trigger Travis CI build
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 4fddee089..2344d7985 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -254,9 +254,9 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti,
}
// Staggered tile boxes (different in each direction)
- Box tbx = convert(tilebox, WarpX::jx_nodal_flag);
- Box tby = convert(tilebox, WarpX::jy_nodal_flag);
- Box tbz = convert(tilebox, WarpX::jz_nodal_flag);
+ Box tbx = convert( tilebox, jx->ixType().toIntVect() );
+ Box tby = convert( tilebox, jy->ixType().toIntVect() );
+ Box tbz = convert( tilebox, jz->ixType().toIntVect() );
tilebox.grow(ngJ);
#ifdef AMREX_USE_GPU
@@ -426,7 +426,7 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp,
}
tilebox.grow(ngRho);
- const Box tb = amrex::convert(tilebox, WarpX::rho_nodal_flag);
+ const Box tb = amrex::convert( tilebox, rho->ixType().toIntVect() );
const int nc = (rho->nComp() == 1 ? 1 : rho->nComp()/2);