Open msulprizio opened 4 years ago
One thing I just thought of: ERROR_STOP (in error_mod.F) calls cleanup.F, which is in GeosCore. The cleanup.F code has dependencies for most modules in GeosCore. So if we move this to Headers, we might incur circular dependencies. Something to watch for.
Code for error-handling can be found in both
Headers/errcode_mod.F90
: Used to return success or failure by GEOS-Chem routinesGeosUtil/error_mod.F
: Contains error-checking routines (e.g.ALLOC_ERROR
,GEOS_CHEM_STOP
,IS_SAFE_DIV
)Ideally, all error code would be found in one file for clarity.