![]() |
ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This is the kernel_type class for generating objects with logical
components to determine the operating system (OS) kernel and its name.
More...
Public Attributes | |
character(:, SK), allocatable | name |
The allocatable scalar of type character of default kind SK, containing the operating system name. More... | |
type(kernelis_type) | is |
The scalar object of type kernelis_type containing the logical components indicating the OS. More... | |
This is the kernel_type class for generating objects with logical
components to determine the operating system (OS) kernel and its name.
When an object of this type is generated, a single object component name
corresponding to OS name is filled with,
"Windows"
if the OS is Windows. "Cygwin"
if the OS is Cygwin. "MinGW"
if the OS is MinGW. "MSYS"
if the OS is MinGW. "Linux"
if the OS is Linux. "Darwin"
if the OS is Darwin. "FreeBSD"
if the OS is FreeBSD. Otherwise, if the appropriate preprocessing macro is undefined, the type constructor will use the facilities of the runtime shell to infer the Operating System kernel name through either:
OS
environmental variable in Windows-style runtime shells. OSTYPE
environmental variable in UNIX-style runtime shells. uname
command on unix-style runtime shells. "msys"
, "MinGW"
, "Cygwin"
are not really standalone Operating System kernels, rather Linux compatibility environments within Windows platforms.windows
component of the is
component of the object of type kernel_type is always set to .true.
.[out] | failed | : The output scalar logical of default kind LK that is .true. if and only if an error occurs while inferring the operating system kernel.(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. It can be present only if failed is also present. If missing, no error message will be output.) |
kernel
: The output scalar object of type kernel_type containing the specifics of the operating system kernel name.
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 244 of file pm_sysInfo.F90.
type(kernelis_type) pm_sysInfo::kernel_type::is |
The scalar object of type kernelis_type containing the logical components indicating the OS.
Definition at line 246 of file pm_sysInfo.F90.
character(:, SK), allocatable pm_sysInfo::kernel_type::name |
The allocatable
scalar of type character
of default kind SK, containing the operating system name.
Definition at line 245 of file pm_sysInfo.F90.