Contains functionality for error handling in GRILLIX, based on PARALLAX error handling.
Logs an error to stderr and stops the program. If status_code is GRILLIX_SUCCESS, this subroutine will do nothing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | message |
Error or warning message |
||
| integer, | intent(in) | :: | status_code |
Error or warning code |
||
| integer, | intent(in) | :: | line_number |
Line number where error or warning occured, i.e. LINE |
||
| character(len=*), | intent(in) | :: | file_name |
File name where error or warning occured, i.e. FILE |
||
| type(error_info_t), | intent(in), | optional | :: | additional_info |
Additional information |
Wrapper of handle error for calls of NetCDF functions. Checks for NetCDF errors and prints a standardized error message.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | istatus |
Status integer returned by the NetCDF function |
||
| integer, | intent(in) | :: | line_number |
Line number where error or warning occured, i.e. LINE |
||
| character(len=*), | intent(in) | :: | file_name |
File name where error or warning occured, i.e. FILE |