aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/ParticleIO.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/Diagnostics/ParticleIO.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/Diagnostics/ParticleIO.cpp')
-rw-r--r--Source/Diagnostics/ParticleIO.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/Diagnostics/ParticleIO.cpp b/Source/Diagnostics/ParticleIO.cpp
index 875798554..5e1467ba1 100644
--- a/Source/Diagnostics/ParticleIO.cpp
+++ b/Source/Diagnostics/ParticleIO.cpp
@@ -120,9 +120,12 @@ MultiParticleContainer::WritePlotFile (const std::string& dir) const
}
#ifdef WARPX_QED
- if(pc->m_do_qed){
- real_names.push_back("tau");
- }
+ if( pc->has_breit_wheeler() ) {
+ real_names.push_back("optical_depth_BW");
+ }
+ if( pc->has_quantum_sync() ) {
+ real_names.push_back("optical_depth_QSR");
+ }
#endif
// Convert momentum to SI