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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Particles/MultiParticleContainer.cpp b/Source/Particles/MultiParticleContainer.cpp
index 95b9089fb..1c240bed1 100644
--- a/Source/Particles/MultiParticleContainer.cpp
+++ b/Source/Particles/MultiParticleContainer.cpp
@@ -859,7 +859,7 @@ MultiParticleContainer::ParseQuantumSyncParams ()
std::string load_table_name;
pp.query("load_table_from", load_table_name);
if(load_table_name != ""s){
- if(ParallelDescriptor::IOProcessor()){
+ if(generate_table && ParallelDescriptor::IOProcessor()){
amrex::Print() << "Warning, Quantum Synchrotron table will be loaded, not generated. \n";
}
table_name = load_table_name;
@@ -917,7 +917,7 @@ MultiParticleContainer::ParseBreitWheelerParams ()
std::string load_table_name;
pp.query("load_table_from", load_table_name);
if(load_table_name != ""s){
- if(ParallelDescriptor::IOProcessor()){
+ if(generate_table && ParallelDescriptor::IOProcessor()){
amrex::Print() << "Warning, Breit Wheeler table will be loaded, not generated. \n";
}
table_name = load_table_name;
@@ -936,7 +936,6 @@ MultiParticleContainer::ParseBreitWheelerParams ()
amrex::Error("Error: Breit Wheeler table has either to be generated or to be loaded.\n");
}
-
return std::make_tuple(generate_table, table_name, ctrl);
}
#endif