Stellarator-Tools
|
This module contains all the code needed to define an error. More...
Functions/Subroutines | |
subroutine | siesta_error_set_error (error_code, message) |
Sets the bit flag for the error code. More... | |
subroutine | siesta_error_clear_error (error_code) |
Clears the bit flag for the error code. More... | |
subroutine | siesta_error_clear_all |
Clears all error code. More... | |
Variables | |
integer, parameter | siesta_error_no_error = 0 |
All error flags off. | |
integer, parameter | siesta_error_assert = 0 |
Assertion Error. | |
integer, parameter | siesta_error_block_tri = 1 |
Assertion Error. | |
integer, parameter | siesta_error_general = 2 |
General Error. | |
integer, parameter | siesta_error_allocation = 3 |
Allocation Error. | |
integer, parameter | siesta_error_io = 4 |
IO Error. | |
integer, parameter | siesta_error_param = 5 |
Parameter error. | |
integer | siesta_error_state = siesta_error_no_error |
This module contains all the code needed to define an error.
subroutine siesta_error::siesta_error_clear_all |
Clears all error code.
Sets all bit positions to zero.
subroutine siesta_error::siesta_error_clear_error | ( | integer, intent(in) | error_code | ) |
Clears the bit flag for the error code.
Clears the bits for an error. Errors are defined by the module parameters.
[in] | error_code | Error code to set. |
subroutine siesta_error::siesta_error_set_error | ( | integer, intent(in) | error_code, |
character (len=*), intent(in) | message | ||
) |
Sets the bit flag for the error code.
Sets the bits for an error. Errors are defined by the module parameters. If this is reconstruction context, only report the error. Otherwise exit.
[in] | error_code | Error code to set. |
[in] | message | Message to report. |