Added check for number of active batches > 0.

This commit is contained in:
Paul Romano 2012-04-09 10:17:46 -04:00
parent c74a7eacec
commit 33ebeedd78

View file

@ -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()