ESCOMP / CAM-SIMA

Community Atmosphere Model - System for Integrated Modeling of the Atmosphere
3 stars 12 forks source link

The generated "allocate_physics_types_fields" subroutine should use "check_allocate" #199

Open nusbaume opened 1 year ago

nusbaume commented 1 year ago

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.