Merge pull request #1325 from paulromano/output-verbosity

Make sure output is always verbosity-limited
This commit is contained in:
Andrew Johnson 2019-09-03 15:18:15 -05:00 committed by GitHub
commit d9c66fc13f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -172,7 +172,7 @@ void load_dagmc_geometry()
// notify user if UWUW materials are going to be used
if (using_uwuw) {
std::cout << "Found UWUW Materials in the DAGMC geometry file.\n";
write_message("Found UWUW Materials in the DAGMC geometry file.", 6);
}
int32_t dagmc_univ_id = 0; // universe is always 0 for DAGMC runs

View file

@ -211,6 +211,7 @@ extern "C" void print_particle(Particle* p)
void print_plot()
{
header("PLOTTING SUMMARY", 5);
if (settings::verbosity < 5) return;
for (auto pl : model::plots) {
// Plot id
@ -453,6 +454,7 @@ void print_runtime()
// display header block
header("Timing Statistics", 6);
if (settings::verbosity < 6) return;
// Save state of cout
auto f {std::cout.flags()};
@ -537,6 +539,7 @@ void print_results()
// display header block for results
header("Results", 4);
if (settings::verbosity < 4) return;
// Calculate t-value for confidence intervals
int n = simulation::n_realizations;