error_handling_grillix_m Module

Contains functionality for error handling in GRILLIX, based on PARALLAX error handling.


Uses


Contents


Subroutines

public subroutine handle_error(message, status_code, line_number, file_name, additional_info)

Logs an error to stderr and stops the program. If status_code is GRILLIX_SUCCESS, this subroutine will do nothing.

Read more…

Arguments

Type IntentOptional 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

public subroutine handle_error_netcdf(istatus, line_number, file_name)

Wrapper of handle error for calls of NetCDF functions. Checks for NetCDF errors and prints a standardized error message.

Arguments

Type IntentOptional 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