Currently the registry generator creates a allocate_physics_types_fields subroutine that allocates all of the variables that are being used from the registry. However, there are currently no internal checks as to whether the allocations are actually successful, unlike the rest of the model.
So, the registry generator should be modified so that a stat output is added to each allocate call, with the resulting error code then checked using the check_allocate subroutine.
Currently the registry generator creates a
allocate_physics_types_fields
subroutine that allocates all of the variables that are being used from the registry. However, there are currently no internal checks as to whether the allocations are actually successful, unlike the rest of the model.So, the registry generator should be modified so that a
stat
output is added to eachallocate
call, with the resulting error code then checked using thecheck_allocate
subroutine.