From 8dfbc0662b34f1200426ec211f6c2d8d5018cdcb Mon Sep 17 00:00:00 2001 From: Guillaume Giudicelli Date: Mon, 31 Aug 2020 16:23:49 -0600 Subject: [PATCH] Set log level when confusion occurs with the templated log params --- docs/source/usersguide/troubleshoot.rst | 2 +- src/particle.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/source/usersguide/troubleshoot.rst b/docs/source/usersguide/troubleshoot.rst index 19ce301ec..7fb5723d9 100644 --- a/docs/source/usersguide/troubleshoot.rst +++ b/docs/source/usersguide/troubleshoot.rst @@ -98,7 +98,7 @@ has a collision. For example, if you received this error at cycle 5, generation 5 1 4032 For large runs it is often advantageous to run only the offending particle by -using particle restart mode with the ``-r`` command-line options in conjunction +using particle restart mode with the ``-r`` command-line option in conjunction with the particle restart files that are created when particles are lost with this error. diff --git a/src/particle.cpp b/src/particle.cpp index a983b6600..0b5067165 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -410,7 +410,7 @@ Particle::cross_surface() // TODO: off-by-one const auto& surf {model::surfaces[i_surface - 1].get()}; if (settings::verbosity >= 10 || trace_) { - write_message(" Crossing surface {}", surf->id_); + write_message(1, " Crossing surface {}", surf->id_); } if (surf->bc_ == Surface::BoundaryType::VACUUM && (settings::run_mode != RunMode::PLOTTING)) { @@ -437,7 +437,7 @@ Particle::cross_surface() // Display message if (settings::verbosity >= 10 || trace_) { - write_message(" Leaked out of surface {}", surf->id_); + write_message(1, " Leaked out of surface {}", surf->id_); } return; @@ -502,7 +502,7 @@ Particle::cross_surface() // Diagnostic message if (settings::verbosity >= 10 || trace_) { - write_message(" Reflected from surface {}", surf->id_); + write_message(1, " Reflected from surface {}", surf->id_); } return; @@ -556,7 +556,7 @@ Particle::cross_surface() // Diagnostic message if (settings::verbosity >= 10 || trace_) { - write_message(" Hit periodic boundary on surface {}", surf->id_); + write_message(1, " Hit periodic boundary on surface {}", surf->id_); } return; }