Documentation for module environment

Sets up and terminates the global environment variables

source: environment.F
Loading...

public Subroutines/Functions:

Writes final timings and banner for CP2K
reads the Walltime also in format HH:MM:SS
Initializes a CP2K run (setting of the global environment variables)
read part of cp2k_init
globenv initializations that need the input and error

SUBROUTINEcp2k_finalize(root_section, para_env, globenv, wdir, q_finalize)

Writes final timings and banner for CP2K

Arguments:
POINTER
:: root_section ...
POINTER
:: para_env ...
POINTER
:: globenv ...
CHARACTER(*),
OPTIONAL
:: wdir ...
LOGICAL,
INTENT(in),
OPTIONAL
:: q_finalize ...

SUBROUTINEcp2k_get_walltime(section, keyword_name, walltime)

reads the Walltime also in format HH:MM:SS

Arguments:
POINTER
:: section ...
CHARACTER(*),
INTENT(in)
:: keyword_name ...
REAL(dp),
INTENT(out)
:: walltime ...

SUBROUTINEcp2k_init(para_env, output_unit, globenv, input_file_name, wdir)

Initializes a CP2K run (setting of the global environment variables)

Arguments:
POINTER
:: para_env ...
INTEGER
:: output_unit ...
POINTER
:: globenv ...
CHARACTER(*)
:: input_file_name ...
CHARACTER(*),
OPTIONAL
:: wdir ...

SUBROUTINEcp2k_read(root_section, para_env, globenv)

read part of cp2k_init

Arguments:
POINTER
:: root_section ...
POINTER
:: para_env ...
POINTER
:: globenv the globenv

SUBROUTINEcp2k_setup(root_section, para_env, globenv)

globenv initializations that need the input and error

Arguments:
POINTER
:: root_section ...
POINTER
:: para_env ...
POINTER
:: globenv the global environment to initialize