aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.H
diff options
context:
space:
mode:
authorGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-21 10:24:26 -0700
committerGravatar RevathiJambunathan <revanathan@gmail.com> 2019-10-21 10:24:26 -0700
commitee34b3e8cd231e5fa42cb841ec6ac16555e3a692 (patch)
treeff3d0cf3d9decf92890c131ad022a12caa60a4aa /Source/Particles/PhotonParticleContainer.H
parentd9daf257e26d503ac5d1c7c1bf8aaff4877ff7aa (diff)
parent80f2d85117bf99c256d416a3a21fb4618e82fe8b (diff)
downloadWarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.tar.gz
WarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.tar.zst
WarpX-ee34b3e8cd231e5fa42cb841ec6ac16555e3a692.zip
Merge branch 'dev' of https://github.com/ECP-WarpX/WarpX into SliceInLabFrameForBoostedSim
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.H')
-rw-r--r--Source/Particles/PhotonParticleContainer.H10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H
index 9b53a04ba..407cf26f3 100644
--- a/Source/Particles/PhotonParticleContainer.H
+++ b/Source/Particles/PhotonParticleContainer.H
@@ -46,6 +46,15 @@ public:
amrex::Cuda::ManagedDeviceVector<amrex::ParticleReal>& zp,
amrex::Real dt, DtType a_dt_type=DtType::Full) override;
+ // Don't push momenta for photons
+ virtual void PushP (int lev,
+ amrex::Real dt,
+ const amrex::MultiFab& Ex,
+ const amrex::MultiFab& Ey,
+ const amrex::MultiFab& Ez,
+ const amrex::MultiFab& Bx,
+ const amrex::MultiFab& By,
+ const amrex::MultiFab& Bz) override {};
// DepositCurrent should do nothing for photons
@@ -64,7 +73,6 @@ public:
int lev,
int depos_lev,
amrex::Real dt) override {};
-
};
#endif // #ifndef WARPX_PhotonParticleContainer_H_