mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Add max_tracks setting (maximum number of tracks per process)
This commit is contained in:
parent
4f1e8f46f5
commit
e34bf445f0
9 changed files with 99 additions and 19 deletions
|
|
@ -517,18 +517,7 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
p.trace() = true;
|
||||
|
||||
// Set particle track.
|
||||
p.write_track() = false;
|
||||
if (settings::write_all_tracks) {
|
||||
p.write_track() = true;
|
||||
} else if (settings::track_identifiers.size() > 0) {
|
||||
for (const auto& t : settings::track_identifiers) {
|
||||
if (simulation::current_batch == t[0] &&
|
||||
simulation::current_gen == t[1] && p.id() == t[2]) {
|
||||
p.write_track() = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
p.write_track() = check_track_criteria(p);
|
||||
|
||||
// Display message if high verbosity or trace is on
|
||||
if (settings::verbosity >= 9 || p.trace()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue