mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Updating batch number checks for simulation and sp load
This commit is contained in:
parent
6e2a9add5e
commit
1891ff7c24
2 changed files with 5 additions and 4 deletions
|
|
@ -236,7 +236,7 @@ int openmc_next_batch(int* status)
|
|||
|
||||
// Check simulation ending criteria
|
||||
if (status) {
|
||||
if (simulation::current_batch == settings::n_max_batches) {
|
||||
if (simulation::current_batch >= settings::n_max_batches) {
|
||||
*status = STATUS_EXIT_MAX_BATCH;
|
||||
} else if (simulation::satisfy_triggers) {
|
||||
*status = STATUS_EXIT_ON_TRIGGER;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue