aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r--Source/Particles/MultiParticleContainer.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index d1e28fd1f..30b60a391 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -159,6 +159,27 @@ MultiParticleContainer::InitData ()
pc->InitData();
}
pc_tmp->InitData();
+
+#ifdef WARPX_QED
+ //Initialize the lookup tables
+ //Generates tables if they do not exist
+ if(!does_file_exist("bw_engine_dndt.bin")){
+ bw_engine.compute_dN_dt_lookup_table(&std::cout);
+ bw_engine.write_dN_dt_table("bw_engine_dndt.bin");
+ }
+ else{
+ bw_engine.read_dN_dt_table("bw_engine_dndt.bin");
+ }
+
+ if(!does_file_exist("bw_engine_pair.bin")){
+ bw_engine.compute_cumulative_pair_table(&std::cout);
+ bw_engine.write_cumulative_pair_table("bw_engine_pair.bin");
+ }
+ else{
+ bw_engine.read_cumulative_pair_table("bw_engine_pair.bin");
+ }
+#endif
+
}