diff options
author | 2019-07-07 11:20:28 -0700 | |
---|---|---|
committer | 2019-07-07 11:20:28 -0700 | |
commit | a9dde5192caae19bc4198b4ae404c7015c104cf5 (patch) | |
tree | 69b7021c348d7144419df0b9e67e3dbcd6b4b938 /Source/Particles/WarpXParticleContainer.H | |
parent | 2d623c4f0c219b9bebd1e15d9304a2cd51451dc3 (diff) | |
download | WarpX-a9dde5192caae19bc4198b4ae404c7015c104cf5.tar.gz WarpX-a9dde5192caae19bc4198b4ae404c7015c104cf5.tar.zst WarpX-a9dde5192caae19bc4198b4ae404c7015c104cf5.zip |
avoid duplication in current deposition when using buffers
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.H | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index 1e3dfb2ae..3098e9296 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -164,32 +164,31 @@ public: bool local = false); std::unique_ptr<amrex::MultiFab> GetChargeDensity(int lev, bool local = false); - virtual void DepositCharge(WarpXParIter& pti, - RealVector& wp, - amrex::MultiFab* rhomf, - amrex::MultiFab* crhomf, - int icomp, - const long np_current, - const long np, - int thread_num, - int lev ); - - virtual void DepositCurrent(WarpXParIter& pti, - RealVector& wp, - RealVector& uxp, - RealVector& uyp, - RealVector& uzp, - amrex::MultiFab& jx, - amrex::MultiFab& jy, - amrex::MultiFab& jz, - amrex::MultiFab* cjx, - amrex::MultiFab* cjy, - amrex::MultiFab* cjz, - const long np_current, - const long np, - int thread_num, - int lev, - amrex::Real dt ); + virtual void DepositCharge(WarpXParIter& pti, + RealVector& wp, + amrex::MultiFab* rhomf, + amrex::MultiFab* crhomf, + int icomp, + const long np_current, + const long np, + int thread_num, + int lev ); + + virtual void DepositCurrent(WarpXParIter& pti, + RealVector& wp, + RealVector& uxp, + RealVector& uyp, + RealVector& uzp, + amrex::MultiFab* jx, + amrex::MultiFab* jy, + amrex::MultiFab* jz, + const long offset, + const long np_to_depose, + int thread_num, + int lev, + int depos_lev, + amrex::Real dt, + const long ngJ); // If particles start outside of the domain, ContinuousInjection // makes sure that they are initialized when they enter the domain, and |