diff options
author | 2019-09-12 08:28:31 -0700 | |
---|---|---|
committer | 2019-09-12 08:28:31 -0700 | |
commit | e90fc75dee20853fd2c3fa8ed08c2cf349e3e7d4 (patch) | |
tree | ff9be66260c8efef94d0c454dfed1abd46a0c864 /Source/Particles/MultiParticleContainer.cpp | |
parent | 511e9355a86bc3412dd05c36498cf9cbad63bf7d (diff) | |
download | WarpX-e90fc75dee20853fd2c3fa8ed08c2cf349e3e7d4.tar.gz WarpX-e90fc75dee20853fd2c3fa8ed08c2cf349e3e7d4.tar.zst WarpX-e90fc75dee20853fd2c3fa8ed08c2cf349e3e7d4.zip |
remove QED specifics, they will be included in later PRs
Diffstat (limited to 'Source/Particles/MultiParticleContainer.cpp')
-rw-r--r-- | Source/Particles/MultiParticleContainer.cpp | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp index 8a4d1cf18..9c9bdcec4 100644 --- a/Source/Particles/MultiParticleContainer.cpp +++ b/Source/Particles/MultiParticleContainer.cpp @@ -8,16 +8,9 @@ using namespace amrex; -#ifdef WARPX_QED -MultiParticleContainer::MultiParticleContainer (AmrCore* amr_core): - bw_engine{std::move(init_warpx_breit_wheeler_engine())} -#else MultiParticleContainer::MultiParticleContainer (AmrCore* amr_core) -#endif { - - ReadParameters(); allcontainers.resize(nspecies + nlasers); @@ -112,7 +105,9 @@ MultiParticleContainer::ReadParameters () if (!photon_species.empty()) { for (auto const& name : photon_species) { auto it = std::find(species_names.begin(), species_names.end(), name); - AMREX_ALWAYS_ASSERT_WITH_MESSAGE(it != species_names.end(), "ERROR: species in particles.rigid_injected_species must be part of particles.species_names"); + AMREX_ALWAYS_ASSERT_WITH_MESSAGE( + it != species_names.end(), + "ERROR: species in particles.rigid_injected_species must be part of particles.species_names"); int i = std::distance(species_names.begin(), it); species_types[i] = PCTypes::Photon; } @@ -154,31 +149,6 @@ MultiParticleContainer::InitData () // For each species, get the ID of its product species. // This is used for ionization and pair creation processes. mapSpeciesProduct(); - -#ifdef WARPX_QED - - //Helper function - auto does_file_exist = [](const char *fileName) - {return (std::ifstream{fileName}).good(); }; - - //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 } |