ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return a decorated string resulting from the concatenation of getFile(FILE) and getLine(LINE) where FILE
and LINE
are replaced by the specified input source file and line of interest.
More...
Generate and return a decorated string resulting from the concatenation of getFile(FILE) and getLine(LINE) where FILE
and LINE
are replaced by the specified input source file and line of interest.
The procedures under this generic interface are meant to facilitate tracing of origin of an error in error message when it occurs.
Although the task performed by this generic interface is rather trivial, the goal is to offer consistent style over the entire library for traceback information collection.
[in] | file | : The input scalar character of processor default kind kind("") , containing the path of the file within which an error or an interesting event has occurred.The path of a source file is frequently returned by the compiler-defined macro __FILE__ .At least two compilers (Intel and GNU) define the macro __FILE__ at compile time. |
[in] | line | : The input scalar integer of processor default kind kind(0) , containing the line at which an error or an interesting event has occurred.The number of a line within a source file is frequently returned by the compiler-defined macro __LINE__ .At least two compilers (Intel and GNU) define the macro __LINE__ at compile time. |
str
: The output scalar character
of default kind SK containing a decoration of the input file
and line
.
Possible calling interfaces ⛓
pure
.Fine
results from merging File
with Line
.
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 382 of file pm_err.F90.