Documentation for module machine_internal

...

source: machine_internal.F
Loading...

public Subroutines/Functions:

SUBROUTINE
m_abort
Can be used to get a nice core
SUBROUTINE
m_chdir (dir, ierror)
...
SUBROUTINE
m_flush (lunit)
Flush a given unit
SUBROUTINE
m_getarg (i, arg)
...
SUBROUTINE
m_getcwd (curdir)
...
SUBROUTINE
m_getlog (user)
...
SUBROUTINE
m_getpid (pid)
...
SUBROUTINE
m_getuid (uid)
...
SUBROUTINE
m_hostnm (hname)
...
FUNCTION
INTEGER
m_iargc
The number of arguments of the fortran program
SUBROUTINE
m_memory (mem)
Returns the total amount of memory [bytes] in use, if known, zero otherwise
...
SUBROUTINE
m_mov (source, target)
...
FUNCTION
INTEGER
m_procrun (pid)
Returns if a process is running on the local machine 1 if yes and 0 if not

Module variables:

INTEGER(int_8)
:: m_memory_max = 0

SUBROUTINEm_abort()

Can be used to get a nice core

SUBROUTINEm_chdir(dir, ierror)

...

Arguments:
CHARACTER(*),
INTENT(in)
:: dir ...
INTEGER,
INTENT(out)
:: ierror ...

SUBROUTINEm_flush(lunit)

Flush a given unit

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

SUBROUTINEm_getarg(i, arg)

...

Arguments:
INTEGER,
INTENT(in)
:: i ...
CHARACTER(*),
INTENT(out)
:: arg ...

SUBROUTINEm_getcwd(curdir)

...

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

SUBROUTINEm_getlog(user)

...

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

SUBROUTINEm_getpid(pid)

...

Arguments:
INTEGER,
INTENT(out)
:: pid ...

SUBROUTINEm_getuid(uid)

...

Arguments:
INTEGER,
INTENT(out)
:: uid ...

SUBROUTINEm_hostnm(hname)

...

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

FUNCTIONm_iargc()

The number of arguments of the fortran program

Return Value ::
INTEGER

SUBROUTINEm_memory(mem)

Returns the total amount of memory [bytes] in use, if known, zero otherwise

Arguments:
INTEGER(int_8),
INTENT(out),
OPTIONAL
:: mem ...

SUBROUTINEm_memory_details(memtotal, memfree, buffers, cached, slab, sreclaimable, memlikelyfree)

...

Arguments:
INTEGER(int_8),
OPTIONAL
:: memtotal ...
INTEGER(int_8),
OPTIONAL
:: memfree ...
INTEGER(int_8),
OPTIONAL
:: buffers ...
INTEGER(int_8),
OPTIONAL
:: cached ...
INTEGER(int_8),
OPTIONAL
:: slab ...
INTEGER(int_8),
OPTIONAL
:: sreclaimable ...
INTEGER(int_8),
OPTIONAL
:: memlikelyfree ...

SUBROUTINEm_mov(source, target)

...

Arguments:
CHARACTER(*),
INTENT(in)
:: source ...
CHARACTER(*),
INTENT(in)
:: target ...

FUNCTIONm_procrun(pid)

Returns if a process is running on the local machine 1 if yes and 0 if not

Return Value ::
INTEGER
Arguments:
INTEGER,
INTENT(in)
:: pid ...