diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.H | 2 | ||||
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 1fedc1d3e..41a11b442 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -301,7 +301,7 @@ protected: bool m_gather_from_main_grid = false; static int do_not_push; - static int do_not_deposit_current; + static int do_not_deposit; // Whether to allow particles outside of the simulation domain to be // initialized when they enter the domain. diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 06000a32f..c256df6aa 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -18,7 +18,7 @@ using namespace amrex; int WarpXParticleContainer::do_not_push = 0; -int WarpXParticleContainer::do_not_deposit_current = 0; +int WarpXParticleContainer::do_not_deposit = 0; WarpXParIter::WarpXParIter (ContainerType& pc, int level) : ParIter(pc, level, MFItInfo().SetDynamic(WarpX::do_dynamic_scheduling)) @@ -122,7 +122,7 @@ WarpXParticleContainer::ReadParameters () #endif pp.query("do_tiling", do_tiling); pp.query("do_not_push", do_not_push); - pp.query("do_not_deposit_current", do_not_deposit_current); + pp.query("do_not_deposit", do_not_deposit); initialized = true; } @@ -273,8 +273,8 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, // If no particles, do not do anything if (np_to_depose == 0) return; - // If user decides not to deposit current - if (do_not_deposit_current) return; + // If user decides not to deposit + if (do_not_deposit) return; const long ngJ = jx->nGrow(); const std::array<Real,3>& dx = WarpX::CellSize(std::max(depos_lev,0)); @@ -433,6 +433,9 @@ WarpXParticleContainer::DepositCharge (WarpXParIter& pti, RealVector& wp, // If no particles, do not do anything if (np_to_depose == 0) return; + // If user decides not to deposit + if (do_not_deposit) return; + const long ngRho = rho->nGrow(); const std::array<Real,3>& dx = WarpX::CellSize(std::max(depos_lev,0)); const Real q = this->charge; |