ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This is the derived type for generating objects to gracefully and verbosely handle runtime unexpected behavior in the ParaMonte library.
More...
Public Attributes | |
logical(LK) | iswarned = .false._LK |
The scalar logical of default kind LK that is .true. if a runtime warning occurs.More... | |
logical(LK) | occurred = .false._LK |
The scalar logical of default kind LK that is .true. if a runtime error occurs.More... | |
integer(IK) | stat = -huge(0_IK) |
The scalar integer of default kind IK to contain the error flag or status code returned by the compiler or program upon encountering an error.More... | |
character(:, SK), allocatable | msg |
The allocatable scalar character of default kind SK containing the error message.More... | |
This is the derived type for generating objects to gracefully and verbosely handle runtime unexpected behavior in the ParaMonte library.
Always initialize objects of type err_type if you prefer to avoid the manual allocation of the msg
component of the object.
The pre-allocated component can be readily passed to various Fortran routines for catching error messages.
[in] | occurred | : The input scalar logical of default kind LK that is used to initialize the corresponding component of the output object.(optional, default = .false. ) |
[in] | stat | : The input scalar integer of default kind IK that contains the error flag or status.It is used to to initialize the corresponding component of the output object. (optional, default = -huge(0_IK) ) |
[in] | msg | : The input allocatable scalar character of default kind SK containing the error message.It is used to to initialize the corresponding component of the output object. (optional, default = repeat(" ", 255) ) |
err
: The output scalar object of type err_type.
Possible calling interfaces ⛓
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 157 of file pm_err.F90.
logical(LK) pm_err::err_type::iswarned = .false._LK |
The scalar logical
of default kind LK that is .true.
if a runtime warning occurs.
Definition at line 158 of file pm_err.F90.
character(:, SK), allocatable pm_err::err_type::msg |
The allocatable
scalar character
of default kind SK containing the error message.
Definition at line 162 of file pm_err.F90.
logical(LK) pm_err::err_type::occurred = .false._LK |
The scalar logical
of default kind LK that is .true.
if a runtime error occurs.
Definition at line 159 of file pm_err.F90.
integer(IK) pm_err::err_type::stat = -huge(0_IK) |
The scalar integer
of default kind IK to contain the error flag or status code returned by the compiler or program upon encountering an error.
Definition at line 160 of file pm_err.F90.