From 04c5d80a62d82ed29c09bfd2fbed0522ad613f72 Mon Sep 17 00:00:00 2001 From: MaxThevenet Date: Sat, 29 Feb 2020 09:15:57 -0800 Subject: 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 --- Source/Particles/PhotonParticleContainer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/Particles/PhotonParticleContainer.cpp') 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 -- cgit v1.2.3