diff options
author | 2022-08-15 13:43:38 -0700 | |
---|---|---|
committer | 2022-08-15 13:43:38 -0700 | |
commit | 3bb148ebbc1c8eae47d1f00ab60e68a041289cb6 (patch) | |
tree | 34496fd90e9f9aeb443ebef89a1e15bf643decb3 /Source/Particles/WarpXParticleContainer.H | |
parent | 960e4d717b637443c2efaa5b6a9718718cbdee06 (diff) | |
download | WarpX-3bb148ebbc1c8eae47d1f00ab60e68a041289cb6.tar.gz WarpX-3bb148ebbc1c8eae47d1f00ab60e68a041289cb6.tar.zst WarpX-3bb148ebbc1c8eae47d1f00ab60e68a041289cb6.zip |
Move handling of do_not_deposit to physics callers (#3225)
* Rearrange in preparation for lifting do_not_deposit higher in the call stack
* Make do_not_deposit public, so callers can test on it
* Make all DepositCharge call sites respect WarpXParticleContainer::do_not_deposit
* Drop check for do_not_deposit in DepositCharge
* Fix comment to accurately describe np_to_depose
* Fix logic to account for other logic in AddSpaceChargeField
* Match zero charge density array to filled array in RZ PSATD case
* Structure control flow per @dpgrote's preference
* Reword comment for clarity
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index d6154a2d5..7f9e4e866 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -307,6 +307,7 @@ public: void ApplyBoundaryConditions (); bool do_splitting = false; + int do_not_deposit = 0; bool initialize_self_fields = false; amrex::Real self_fields_required_precision = amrex::Real(1.e-11); amrex::Real self_fields_absolute_tolerance = amrex::Real(0.0); @@ -388,7 +389,6 @@ protected: bool m_gather_from_main_grid = false; int do_not_push = 0; - int do_not_deposit = 0; int do_not_gather = 0; // Whether to allow particles outside of the simulation domain to be |