A module to do handle error passing.
A type that can be passed around to accumulate errors.
Routine to call to check if an MPI error has occurred.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(inout) | :: | this |
The error variable to be set. |
||
character(len=*), | intent(in) | :: | error_description |
Some string describing the details of the error. |
||
integer, | intent(in) | :: | mpi_error |
The error variable produced by mpi. |
||
logical, | intent(in), | optional | :: | immediate_cleanup_in |
If true, the cleanup error handler is called. |
True if an error has occurred, false otherwise.
Routine to call if an alloc error has occurred.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(inout) | :: | this |
This the error variable to be set. |
||
character(len=*), | intent(in) | :: | error_description |
Some string describing the details of the error. |
||
integer, | intent(in) | :: | alloc_error |
The error variable produced by alloc. |
||
logical, | intent(in), | optional | :: | immediate_cleanup_in |
If true, the cleanup error handler is called. |
True if an error has occurred, false otherwise.
Check if an error has occurred or not.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(in) | :: | this |
The error variable to check. |
True if an error has occurred, false otherwise.
Default constructor for an error type.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(inout) | :: | this |
The newly constructed error type |
Routine to call if a generic error has occurred.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(inout) | :: | this |
The error variable to be set. |
||
character(len=*), | intent(in) | :: | error_description |
Some string describing the details of the error. |
||
logical, | intent(in), | optional | :: | immediate_cleanup_in |
If true, the cleanup error handler is called. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | error_code | |||
character(len=*), | intent(in) | :: | error_description | |||
logical, | intent(in), | optional | :: | immediate_cleanup_in |
Print out that an error has occurred.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(Error_t), | intent(in) | :: | this |
The error to print out. |