aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 27868cb84..7b08f9430 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -132,8 +132,7 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
const auto GetPosition = GetParticlePosition(pti, offset);
auto SetPosition = SetParticlePosition(pti, offset);
- const auto getExternalE = GetExternalEField(pti, offset);
- const auto getExternalB = GetExternalBField(pti, offset);
+ const auto getExternalEB = GetExternalEBField(pti, offset);
// Lower corner of tile box physical domain (take into account Galilean shift)
amrex::Real cur_time = WarpX::GetInstance().gett_new(lev);
@@ -188,8 +187,7 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti,
dx_arr, xyzmin_arr, lo, n_rz_azimuthal_modes,
nox, galerkin_interpolation);
}
- getExternalE(i, Exp, Eyp, Ezp);
- getExternalB(i, Bxp, Byp, Bzp);
+ getExternalEB(i, Exp, Eyp, Ezp, Bxp, Byp, Bzp);
#ifdef WARPX_QED
if (local_has_breit_wheeler) {