aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-02-29 09:15:57 -0800
committerGravatar GitHub <noreply@github.com> 2020-02-29 09:15:57 -0800
commit04c5d80a62d82ed29c09bfd2fbed0522ad613f72 (patch)
tree390c71fba1fc44ca45c99ec60d589a53c68729d4 /Source/Particles/PhotonParticleContainer.cpp
parentce895b10fd90e584ea62256a2f4834bdce2715d9 (diff)
downloadWarpX-04c5d80a62d82ed29c09bfd2fbed0522ad613f72.tar.gz
WarpX-04c5d80a62d82ed29c09bfd2fbed0522ad613f72.tar.zst
WarpX-04c5d80a62d82ed29c09bfd2fbed0522ad613f72.zip
replace tau by optical_depth_QSR and optical_depth_BW (#742)
* replace tau by optical_depth_QSR and optical_depth_BW * update python analysis scripts accordingly * fix bug for BW
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 67efb127f..39a5cd5d2 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -124,7 +124,7 @@ void
PhotonParticleContainer::EvolveOpticalDepth(
WarpXParIter& pti,amrex::Real dt)
{
- if(!has_breit_wheeler())
+ if(!has_breit_wheeler())
return;
auto& attribs = pti.GetAttribs();
@@ -141,8 +141,8 @@ PhotonParticleContainer::EvolveOpticalDepth(
BreitWheelerEvolveOpticalDepth evolve_opt =
m_shr_p_bw_engine->build_evolve_functor();
- amrex::Real* AMREX_RESTRICT p_tau =
- pti.GetAttribs(particle_comps["tau"]).dataPtr();
+ amrex::Real* AMREX_RESTRICT p_optical_depth_BW =
+ pti.GetAttribs(particle_comps["optical_depth_BW"]).dataPtr();
const auto me = PhysConst::m_e;
@@ -157,8 +157,8 @@ PhotonParticleContainer::EvolveOpticalDepth(
px, py, pz,
Ex[i], Ey[i], Ez[i],
Bx[i], By[i], Bz[i],
- dt, p_tau[i]);
+ dt, p_optical_depth_BW[i]);
}
- );
+ );
}
#endif