Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle restart logs #1649

Merged
merged 2 commits into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/source/usersguide/troubleshoot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ has a collision. For example, if you received this error at cycle 5, generation
<trace>5 1 4032</trace>

For large runs it is often advantageous to run only the offending particle by
using particle restart mode with the ``-s``, ``-particle``, or ``--particle``
command-line options in conjunction with the particle restart files that are
created when particles are lost with this error.
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.

.. _mailing list: https://groups.google.com/forum/?fromgroups=#!forum/openmc-users
8 changes: 4 additions & 4 deletions src/particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down