diff --git a/Source/Particles/ElementaryProcess/Ionization.cpp b/Source/Particles/ElementaryProcess/Ionization.cpp index fb0b4d27080..c3681a30cad 100644 --- a/Source/Particles/ElementaryProcess/Ionization.cpp +++ b/Source/Particles/ElementaryProcess/Ionization.cpp @@ -39,6 +39,12 @@ IonizationFilterFunc::IonizationFilterFunc (const WarpXParIter& a_pti, int lev, m_adk_power{a_adk_power}, comp{a_comp}, m_atomic_number{a_atomic_number}, + m_Ex_external_particle{E_external_particle[0]}, + m_Ey_external_particle{E_external_particle[1]}, + m_Ez_external_particle{E_external_particle[2]}, + m_Bx_external_particle{B_external_particle[0]}, + m_By_external_particle{B_external_particle[1]}, + m_Bz_external_particle{B_external_particle[2]}, m_galerkin_interpolation{WarpX::galerkin_interpolation}, m_nox{WarpX::nox}, m_n_rz_azimuthal_modes{WarpX::n_rz_azimuthal_modes} @@ -47,12 +53,6 @@ IonizationFilterFunc::IonizationFilterFunc (const WarpXParIter& a_pti, int lev, m_get_position = GetParticlePosition(a_pti, a_offset); m_get_externalEB = GetExternalEBField(a_pti, a_offset); - m_Ex_external_particle = E_external_particle[0]; - m_Ey_external_particle = E_external_particle[1]; - m_Ez_external_particle = E_external_particle[2]; - m_Bx_external_particle = B_external_particle[0]; - m_By_external_particle = B_external_particle[1]; - m_Bz_external_particle = B_external_particle[2]; m_ex_arr = exfab.array(); m_ey_arr = eyfab.array(); diff --git a/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp b/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp index 8f8c5e68796..2b380d454f4 100644 --- a/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp +++ b/Source/Particles/ElementaryProcess/QEDPairGeneration.cpp @@ -30,6 +30,12 @@ PairGenerationTransformFunc (BreitWheelerGeneratePairs const generate_functor, amrex::Vector& B_external_particle, int a_offset): m_generate_functor{generate_functor}, + m_Ex_external_particle{E_external_particle[0]}, + m_Ey_external_particle{E_external_particle[1]}, + m_Ez_external_particle{E_external_particle[2]}, + m_Bx_external_particle{B_external_particle[0]}, + m_By_external_particle{B_external_particle[1]}, + m_Bz_external_particle{B_external_particle[2]}, m_galerkin_interpolation{WarpX::galerkin_interpolation}, m_nox{WarpX::nox}, m_n_rz_azimuthal_modes{WarpX::n_rz_azimuthal_modes} @@ -39,12 +45,6 @@ PairGenerationTransformFunc (BreitWheelerGeneratePairs const generate_functor, m_get_position = GetParticlePosition(a_pti, a_offset); m_get_externalEB = GetExternalEBField(a_pti, a_offset); - m_Ex_external_particle = E_external_particle[0]; - m_Ey_external_particle = E_external_particle[1]; - m_Ez_external_particle = E_external_particle[2]; - m_Bx_external_particle = B_external_particle[0]; - m_By_external_particle = B_external_particle[1]; - m_Bz_external_particle = B_external_particle[2]; m_ex_arr = exfab.array(); m_ey_arr = eyfab.array(); diff --git a/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp b/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp index a8bdd41b96c..077a4659ce5 100644 --- a/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp +++ b/Source/Particles/ElementaryProcess/QEDPhotonEmission.cpp @@ -33,6 +33,12 @@ PhotonEmissionTransformFunc (QuantumSynchrotronGetOpticalDepth opt_depth_functor m_opt_depth_functor{opt_depth_functor}, m_opt_depth_runtime_comp{opt_depth_runtime_comp}, m_emission_functor{emission_functor}, + m_Ex_external_particle{E_external_particle[0]}, + m_Ey_external_particle{E_external_particle[1]}, + m_Ez_external_particle{E_external_particle[2]}, + m_Bx_external_particle{B_external_particle[0]}, + m_By_external_particle{B_external_particle[1]}, + m_Bz_external_particle{B_external_particle[2]}, m_galerkin_interpolation{WarpX::galerkin_interpolation}, m_nox{WarpX::nox}, m_n_rz_azimuthal_modes{WarpX::n_rz_azimuthal_modes} @@ -42,12 +48,6 @@ PhotonEmissionTransformFunc (QuantumSynchrotronGetOpticalDepth opt_depth_functor m_get_position = GetParticlePosition(a_pti, a_offset); m_get_externalEB = GetExternalEBField(a_pti, a_offset); - m_Ex_external_particle = E_external_particle[0]; - m_Ey_external_particle = E_external_particle[1]; - m_Ez_external_particle = E_external_particle[2]; - m_Bx_external_particle = B_external_particle[0]; - m_By_external_particle = B_external_particle[1]; - m_Bz_external_particle = B_external_particle[2]; m_ex_arr = exfab.array(); m_ey_arr = eyfab.array();