mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
parent
b6c6ac078b
commit
dd8d621f0b
1 changed files with 2 additions and 1 deletions
|
|
@ -436,7 +436,8 @@ extern "C" int openmc_statepoint_load(const char* filename)
|
|||
// Read batch number to restart at
|
||||
read_dataset(file_id, "current_batch", simulation::restart_batch);
|
||||
|
||||
if (simulation::restart_batch >= settings::n_max_batches) {
|
||||
if (settings::restart_run &&
|
||||
simulation::restart_batch >= settings::n_max_batches) {
|
||||
warning(fmt::format(
|
||||
"The number of batches specified for simulation ({}) is smaller "
|
||||
"than or equal to the number of batches in the restart statepoint file "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue