aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2021-04-13 12:00:17 -0700
committerGravatar GitHub <noreply@github.com> 2021-04-13 12:00:17 -0700
commit7b7267ed685b4b045c576004a17ad8090bc6744c (patch)
tree5b33528e0fe4dee7f91e5d8026132d837de7c45d /Source/Particles/PhotonParticleContainer.cpp
parent599d590e60e480cf2e8a7c766565da1edaf79b0b (diff)
downloadWarpX-7b7267ed685b4b045c576004a17ad8090bc6744c.tar.gz
WarpX-7b7267ed685b4b045c576004a17ad8090bc6744c.tar.zst
WarpX-7b7267ed685b4b045c576004a17ad8090bc6744c.zip
Add an option to skip deposition in the `Evolve` function ; use it for electrostatic (#1807)
* Introduce new option skip_deposition * Properly implement the option to skip deposition * Skip deposition for electrostatic solver * Correct typo
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index e8ba363a3..bda0f984e 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -198,7 +198,7 @@ PhotonParticleContainer::Evolve (int lev,
MultiFab* rho, MultiFab* crho,
const MultiFab* cEx, const MultiFab* cEy, const MultiFab* cEz,
const MultiFab* cBx, const MultiFab* cBy, const MultiFab* cBz,
- Real t, Real dt, DtType /*a_dt_type*/)
+ Real t, Real dt, DtType a_dt_type, bool skip_deposition)
{
// This does gather, push and depose.
// Push and depose have been re-written for photons
@@ -210,6 +210,6 @@ PhotonParticleContainer::Evolve (int lev,
rho, crho,
cEx, cEy, cEz,
cBx, cBy, cBz,
- t, dt);
+ t, dt, a_dt_type, skip_deposition);
}