V3FIT
Functions/Subroutines | Variables
siesta_error Module Reference

This module contains all the code needed to define 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 siesta_error_state = siesta_error_no_error
 

Detailed Description

This module contains all the code needed to define error.

Function/Subroutine Documentation

◆ siesta_error_clear_all()

subroutine siesta_error::siesta_error_clear_all

Clears all error code.

Sets all bit positions to zero.

Definition at line 94 of file siesta_error.f90.

◆ siesta_error_clear_error()

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.

Parameters
[in]error_codeError code to set.

Definition at line 77 of file siesta_error.f90.

◆ siesta_error_set_error()

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.

Parameters
[in]error_codeError code to set.
[in]messageMessage to report.

Definition at line 53 of file siesta_error.f90.