aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-07-27 09:57:00 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-27 16:57:00 +0000
commit3903b1f51975a5473837b7bc315bb48268b46496 (patch)
treebd436ed67176ae3ecc95dec3fe37b6bf658f3ddb /Source/Particles/PhysicalParticleContainer.cpp
parentc23649f826c2159ddef07d9eb01e49b0b1dae525 (diff)
downloadWarpX-3903b1f51975a5473837b7bc315bb48268b46496.tar.gz
WarpX-3903b1f51975a5473837b7bc315bb48268b46496.tar.zst
WarpX-3903b1f51975a5473837b7bc315bb48268b46496.zip
Rename: Optical Depths QED (#2140)
This is renaming the runtime added optical depth scalars for QED physics just to create the same names in plotfile and openPMD output.
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index e13a192a5..d489cddfe 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -218,11 +218,11 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
#ifdef WARPX_QED
pp_species_name.query("do_qed_quantum_sync", m_do_qed_quantum_sync);
if (m_do_qed_quantum_sync)
- AddRealComp("optical_depth_QSR");
+ AddRealComp("opticalDepthQSR");
pp_species_name.query("do_qed_breit_wheeler", m_do_qed_breit_wheeler);
if (m_do_qed_breit_wheeler)
- AddRealComp("optical_depth_BW");
+ AddRealComp("opticalDepthBW");
if(m_do_qed_quantum_sync){
pp_species_name.get("qed_quantum_sync_phot_product_species",
@@ -819,10 +819,10 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox)
bool loc_has_breit_wheeler = has_breit_wheeler();
if (loc_has_quantum_sync)
p_optical_depth_QSR = soa.GetRealData(
- particle_comps["optical_depth_QSR"]).data() + old_size;
+ particle_comps["opticalDepthQSR"]).data() + old_size;
if(loc_has_breit_wheeler)
p_optical_depth_BW = soa.GetRealData(
- particle_comps["optical_depth_BW"]).data() + old_size;
+ particle_comps["opticalDepthBW"]).data() + old_size;
//If needed, get the appropriate functors from the engines
QuantumSynchrotronGetOpticalDepth quantum_sync_get_opt;
@@ -1237,10 +1237,10 @@ PhysicalParticleContainer::AddPlasmaFlux (int lev, amrex::Real dt)
bool loc_has_breit_wheeler = has_breit_wheeler();
if (loc_has_quantum_sync)
p_optical_depth_QSR = soa.GetRealData(
- particle_comps["optical_depth_QSR"]).data() + old_size;
+ particle_comps["opticalDepthQSR"]).data() + old_size;
if(loc_has_breit_wheeler)
p_optical_depth_BW = soa.GetRealData(
- particle_comps["optical_depth_BW"]).data() + old_size;
+ particle_comps["opticalDepthBW"]).data() + old_size;
//If needed, get the appropriate functors from the engines
QuantumSynchrotronGetOpticalDepth quantum_sync_get_opt;
@@ -2333,7 +2333,7 @@ PhysicalParticleContainer::PushPX (WarpXParIter& pti,
const bool local_has_quantum_sync = has_quantum_sync();
if (local_has_quantum_sync) {
evolve_opt = m_shr_p_qs_engine->build_evolve_functor();
- p_optical_depth_QSR = pti.GetAttribs(particle_comps["optical_depth_QSR"]).dataPtr();
+ p_optical_depth_QSR = pti.GetAttribs(particle_comps["opticalDepthQSR"]).dataPtr();
}
#endif
@@ -2534,14 +2534,14 @@ PhotonEmissionFilterFunc
PhysicalParticleContainer::getPhotonEmissionFilterFunc ()
{
WARPX_PROFILE("PhysicalParticleContainer::getPhotonEmissionFunc()");
- return PhotonEmissionFilterFunc{particle_runtime_comps["optical_depth_QSR"]};
+ return PhotonEmissionFilterFunc{particle_runtime_comps["opticalDepthQSR"]};
}
PairGenerationFilterFunc
PhysicalParticleContainer::getPairGenerationFilterFunc ()
{
WARPX_PROFILE("PhysicalParticleContainer::getPairGenerationFunc()");
- return PairGenerationFilterFunc{particle_runtime_comps["optical_depth_BW"]};
+ return PairGenerationFilterFunc{particle_runtime_comps["opticalDepthBW"]};
}
#endif