ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return the directory separator symbol based on the runtime system shell.
More...
Generate and return the directory separator symbol based on the runtime system shell.
The directory separator returned by this procedure can be used in constructing paths that can be passed to system function for example via isFailedExec or the Fortran intrinsic execute_command_line()
.
\
./
.[in] | mold | : The input scalar character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) of length 1 . The value of mold s ignored.However, its kind type parameter is used to to set the kind type parameter of the output dirsep .(optional, default = SK_" " where SK refers to the default character kind SK.) if and only if an error occurs while inferring the system shell directory separator.(optional. If missing and a runtime error occurs, the program will halt by calling error stop .) |
[out] | failed | : The output scalar logical of default kind LK that is .true. if and only if an error occurs while inferring the system shell directory separator.(optional. If missing and a runtime error occurs, the program will halt by calling error stop .) |
[in,out] | errmsg | : The input/output scalar character of default kind SK of arbitrary length type parameter.If an error occurs, errmsg will be set to a descriptive message about the nature of the runtime error.A length of LEN_IOMSG characters is likely sufficient to capture most error messages in full. (optional. If missing, no error message will be output. Its presence is relevant only if failed is also present.) |
dirsep
: The output scalar character
of the same kind as the input mold
, of length type parameter 1
, representing the directory separator symbol based on the runtime system shell (\
or /
).failed
is present, it is set to .true.
.dirsep
is set to the default value of the dirsep
component of shell_type.
Possible calling interfaces ⛓
impure
.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓ character
kinds leads to compile-time kind mismatch errors.
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 3843 of file pm_sysPath.F90.