diff options
author | 2020-05-01 16:44:35 -0700 | |
---|---|---|
committer | 2020-05-01 16:44:35 -0700 | |
commit | 26d6358d3c7aff7b4310af34fc771d5c8f2628fe (patch) | |
tree | a152e03b2224c5b420ab99e8f8bb6cb40aa40ef7 /Source/Particles/WarpXParticleContainer.cpp | |
parent | ed8fdc9ca97aa51c522549c565dda4123c679eba (diff) | |
download | WarpX-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.cpp | 8 |
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); |