diff options
author | 2022-08-15 13:43:38 -0700 | |
---|---|---|
committer | 2022-08-15 13:43:38 -0700 | |
commit | 3bb148ebbc1c8eae47d1f00ab60e68a041289cb6 (patch) | |
tree | 34496fd90e9f9aeb443ebef89a1e15bf643decb3 /Source/Python | |
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/Python')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index f2855a145..2df989bba 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -626,6 +626,7 @@ namespace { const long np = pti.numParticles(); auto& wp = pti.GetAttribs(PIdx::w); + // Do this unconditionally, ignoring myspc.do_not_deposit, to support diagnostic uses myspc.DepositCharge(pti, wp, nullptr, rho_fp, 0, 0, np, 0, lev, lev); } #ifdef WARPX_DIM_RZ |