ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Write the input string in the format of a fatal error to the output, then call error stop
or return the control to the caller if requested.
More...
Write the input string in the format of a fatal error to the output, then call error stop
or return the control to the caller if requested.
The procedures under this generic interface call getStrWrapped with the input string to obtain a wrapped text within the specified width
and maxwidth
where the input prefix
is suffixed with - FATAL:
and then prepended to the beginning of each wrapped line and then printed on the display.
[in] | msg | : The input scalar character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) representing the text to be wrapped and displayed. |
[in] | help | : The input scalar character of the same kind as msg containing a descriptive help message to display separately after the fatal error message.(optional, default = "" ) |
[in] | prefix | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | indent | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | break | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | newline | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | width | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | maxwidth | : See the corresponding definition in the documentation of getStrWrapped. (optional) |
[in] | tmsize | : The input scalar of integer of default kind IK representing the number of empty lines preceding the text in the display.(optional, default = 1_IK ) |
[in] | bmsize | : The input scalar of integer of default kind IK representing the number of empty lines succeeding the text in the display.(optional, default = 0_IK ) |
[in] | unit | : The input scalar integer of default kind IK containing the output file unit.If the input unit is different from the standard output (output_unit ), all messages will also be printed on stdout recursively.(optional, default = output_unit taken from the intrinsic module iso_fortran_env .) |
[in] | stat | : The input scalar integer of default kind IK containing the error stat code, frequently returned by the compiler.(optional. If missing, no error code will be suffixed to the output error message.) |
[in] | renabled | : The input scalar logical of default kind LK.If .true. , the program-control will be returned to the calling routine instead of terminating the program via error stop .This capability is particularly needed during the testing of the various components of the ParaMonte library, when fatal error must be handled gracefully. (optional, default = SOFT_EXIT_ENABLED) |
Possible calling interfaces ⛓
impure
.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓ test_pm_err
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 2436 of file pm_err.F90.