Documentation for module machine

...

source: machine.F
Loading...

Forwarded symbols:

m_abort
machine_internal::m_abort
Can be used to get a nice core
m_chdir
machine_internal::m_chdir
...
m_flush_internal
machine_internal::m_flush
Flush a given unit
m_getarg
machine_internal::m_getarg
...
m_getcwd
machine_internal::m_getcwd
...
m_getlog
machine_internal::m_getlog
...
m_getpid
machine_internal::m_getpid
...
m_hostnm
machine_internal::m_hostnm
...
m_iargc
machine_internal::m_iargc
The number of arguments of the fortran program
m_memory
machine_internal::m_memory
Returns the total amount of memory [bytes] in use, if known, zero otherwise
m_memory_details
machine_internal::m_memory_details
...
m_memory_max
machine_internal::m_memory_max
...
m_mov
machine_internal::m_mov
...
m_procrun
machine_internal::m_procrun
Returns if a process is running on the local machine 1 if yes and 0 if not

public Subroutines/Functions:

SUBROUTINE
m_cpuinfo (model_name)
reads /proc/cpuinfo if it exists (i.e. Linux) to return relevant info
SUBROUTINE
m_datum (cal_date)
returns a datum in human readable format using a standard Fortran routine
FUNCTION
REAL(dp)
m_energy
returns the energy used since some time in the past. The precise meaning depends on the infrastructure is available. In the cray_pm_energy case, this is the energy used by the node in kJ.
SUBROUTINE
m_flush (lunit)
flushes units if the &GLOBAL flag is set accordingly
FUNCTION
REAL(dp)
m_walltime
returns time from a real-time clock, protected against rolling early/easily

Parameters:

INTEGER
:: default_input_unit = input_unit
INTEGER
:: default_output_unit = output_unit

Module variables:

LOGICAL
:: flush_should_flush = .false.

SUBROUTINEm_cpuinfo(model_name)

reads /proc/cpuinfo if it exists (i.e. Linux) to return relevant info

Arguments:
:: model_name as obtained from the 'model name' field, UNKNOWN otherwise

SUBROUTINEm_datum(cal_date)

returns a datum in human readable format using a standard Fortran routine

Arguments:
CHARACTER(*),
INTENT(out)
:: cal_date ...

FUNCTIONm_energy()

returns the energy used since some time in the past. The precise meaning depends on the infrastructure is available. In the cray_pm_energy case, this is the energy used by the node in kJ.

Return Value ::
REAL(dp)

SUBROUTINEm_flush(lunit)

flushes units if the &GLOBAL flag is set accordingly

Arguments:
INTEGER,
INTENT(in)
:: lunit ...

FUNCTIONm_walltime()

returns time from a real-time clock, protected against rolling early/easily

Return Value ::
REAL(dp)