Collect system related information.
The following example demonstrates some of the methods found in the benchmark_systeminfo module.
This steps retrieves system information at run time. The method was inspired by the paramonte library from AmirShahmoradi. It has been simplified and adapted to the needs
| integer(os_enum) function, public get_os_type |
Returns the OS type. At first, the environment variable OS is checked, which is usually found on Windows. Then, OSTYPE is read in and compared with common names. If this fails too, check the existence of files that can be found on specific system types only.
Remarks
Definition at line 131 of file SystemInfo.f90.
| subroutine, public get_systeminfo |
Generate and display a summary of the operating system and platform specifications. The system information is obtained by first identifying the operating system and the runtime shell and then calling one of the following commands:
Remarks
Definition at line 68 of file SystemInfo.f90.
| pure character(:) function, allocatable, public os_name | ( | integer(os_enum), intent(in) | os | ) |
Return string describing the OS type flag. That function was taken from fpm.
Remarks
Definition at line 243 of file SystemInfo.f90.