Updating batch number checks for simulation and sp load

This commit is contained in:
Patrick Shriwise 2023-02-16 13:47:42 -06:00
parent 6e2a9add5e
commit 1891ff7c24
2 changed files with 5 additions and 4 deletions

View file

@ -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;