mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Added check for number of active batches > 0.
This commit is contained in:
parent
c74a7eacec
commit
33ebeedd78
1 changed files with 6 additions and 0 deletions
|
|
@ -109,6 +109,12 @@ contains
|
|||
n_inactive = criticality % inactive
|
||||
n_active = n_batches - n_inactive
|
||||
gen_per_batch = criticality % generations_per_batch
|
||||
|
||||
! Check number of active batches
|
||||
if (n_active <= 0) then
|
||||
message = "Number of active batches must be greater than 0."
|
||||
call fatal_error()
|
||||
end if
|
||||
else
|
||||
message = "Need to specify number of batches with <batches> tag."
|
||||
call fatal_error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue