When doing processing of a large scenario library, we exceed the number of available IO units (which is hardcoded to be 200) when calling input_n_files for every scenario. In input_n_files, we call get_unit() but never actually free it. I don't think there is any reason to not free it here. This is solved by freeing the unit (call free_unit(unit)) before the end of the subroutine.
If we don't want to free this, people should hardcode their n_repeat and n_index for their large scenario library processing instead of calling input_n_files.
When doing processing of a large scenario library, we exceed the number of available IO units (which is hardcoded to be 200) when calling
input_n_files
for every scenario. Ininput_n_files
, we callget_unit()
but never actually free it. I don't think there is any reason to not free it here. This is solved by freeing the unit (call free_unit(unit)
) before the end of the subroutine.If we don't want to free this, people should hardcode their
n_repeat
andn_index
for their large scenario library processing instead of callinginput_n_files
.