mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
cleanup up ouput and restricted event timers to only show if using event-based mode.
This commit is contained in:
parent
fc56eba8f0
commit
539c68cee8
2 changed files with 9 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<!-- Define how many particles to run and for how many batches -->
|
||||
<run_mode>eigenvalue</run_mode>
|
||||
<batches>100</batches>
|
||||
<batches>20</batches>
|
||||
<inactive>10</inactive>
|
||||
<particles>1000</particles>
|
||||
|
||||
|
|
|
|||
|
|
@ -466,12 +466,14 @@ void print_runtime()
|
|||
show_time("Total time in simulation", time_inactive.elapsed() +
|
||||
time_active.elapsed());
|
||||
show_time("Time in transport only", time_transport.elapsed(), 1);
|
||||
show_time("Event time: Init", time_event_init.elapsed(), 2);
|
||||
show_time("Event time: XS Lookup", time_event_calculate_xs.elapsed(), 2);
|
||||
show_time("Event time: Advance", time_event_advance_particle.elapsed(), 2);
|
||||
show_time("Event time: Surface", time_event_surface_crossing.elapsed(), 2);
|
||||
show_time("Event time: Collision", time_event_collision.elapsed(), 2);
|
||||
show_time("Event time: Death", time_event_death.elapsed(), 2);
|
||||
#ifdef EVENT_BASED
|
||||
show_time("Particle initialization", time_event_init.elapsed(), 2);
|
||||
show_time("XS lookups", time_event_calculate_xs.elapsed(), 2);
|
||||
show_time("Advancing", time_event_advance_particle.elapsed(), 2);
|
||||
show_time("Surface crossings", time_event_surface_crossing.elapsed(), 2);
|
||||
show_time("Collisions", time_event_collision.elapsed(), 2);
|
||||
show_time("Particle death", time_event_death.elapsed(), 2);
|
||||
#endif
|
||||
if (settings::run_mode == RUN_MODE_EIGENVALUE) {
|
||||
show_time("Time in inactive batches", time_inactive.elapsed(), 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue