diff options
author | 2020-08-06 06:31:38 -0700 | |
---|---|---|
committer | 2020-08-06 06:31:38 -0700 | |
commit | 4c93fb2f90321dab2477eaabe04785100869c073 (patch) | |
tree | a922a0852fee789e05deeadf49d848bf96d95406 /Source/Particles/RigidInjectedParticleContainer.cpp | |
parent | 0564feb5041728173716ef251f1d66d37c314770 (diff) | |
download | WarpX-4c93fb2f90321dab2477eaabe04785100869c073.tar.gz WarpX-4c93fb2f90321dab2477eaabe04785100869c073.tar.zst WarpX-4c93fb2f90321dab2477eaabe04785100869c073.zip |
swap fieldGather and external fields (#1235)
* swap fieldGather and external fields
* clarify EB external on particle for RZ
* swap order and initialize Exp-Bzp for Photons
Diffstat (limited to 'Source/Particles/RigidInjectedParticleContainer.cpp')
-rw-r--r-- | Source/Particles/RigidInjectedParticleContainer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index 6cdd99938..1a480aae7 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -471,10 +471,7 @@ RigidInjectedParticleContainer::PushP (int lev, Real dt, getPosition(ip, xp, yp, zp); amrex::ParticleReal Exp = 0._rt, Eyp = 0._rt, Ezp = 0._rt; - getExternalE(ip, Exp, Eyp, Ezp); - amrex::ParticleReal Bxp = 0._rt, Byp = 0._rt, Bzp = 0._rt; - getExternalB(ip, Bxp, Byp, Bzp); // first gather E and B to the particle positions doGatherShapeN(xp, yp, zp, Exp, Eyp, Ezp, Bxp, Byp, Bzp, @@ -482,6 +479,8 @@ RigidInjectedParticleContainer::PushP (int lev, Real dt, ex_type, ey_type, ez_type, bx_type, by_type, bz_type, dx_arr, xyzmin_arr, lo, n_rz_azimuthal_modes, nox, galerkin_interpolation); + getExternalE(ip, Exp, Eyp, Ezp); + getExternalB(ip, Bxp, Byp, Bzp); if (do_crr) { amrex::Real qp = q; |