aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2021-12-06 20:21:43 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-07 04:21:43 +0000
commit9830a8246ec7c060f5f6690a717bd465514c9bd2 (patch)
tree0f7241d5bc36c8cc5718c9ae1d36b0463ca4b5c1 /Source/Particles/PhotonParticleContainer.cpp
parent749a4c0d8bce01df5bd886f5c452a76c607a850d (diff)
downloadWarpX-9830a8246ec7c060f5f6690a717bd465514c9bd2.tar.gz
WarpX-9830a8246ec7c060f5f6690a717bd465514c9bd2.tar.zst
WarpX-9830a8246ec7c060f5f6690a717bd465514c9bd2.zip
Transform the external fields into the boosted frame (#2610)
They should be specified in the lab frame
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) {