(git:c5411e0)
Loading...
Searching...
No Matches
cp_log_handling::cp_logger_type Type Reference

type of a logger, at the moment it contains just a print level starting at which level it should be logged (0 note, 1 warning, 2 failure, 3 fatal) it could be expanded with the ability to focus on one or more module/object/thread/processor More...

Data Fields

integer ref_count = -1
 
integer print_level = -1
 
integer default_local_unit_nr = -1
 
integer default_global_unit_nr = -1
 
logical close_local_unit_on_dealloc = .FALSE.
 
logical close_global_unit_on_dealloc = .FALSE.
 
character(len=default_string_length) suffix = ""
 
character(len=default_path_length) local_filename = ""
 
character(len=default_path_length) global_filename = ""
 
type(mp_para_env_type), pointer para_env => NULL()
 
type(cp_iteration_info_type), pointer iter_info => NULL()
 

Detailed Description

type of a logger, at the moment it contains just a print level starting at which level it should be logged (0 note, 1 warning, 2 failure, 3 fatal) it could be expanded with the ability to focus on one or more module/object/thread/processor

Parameters
ref_countreference count (see cp2k/doc/ReferenceCounting.html)
print_levelthe level starting at which something gets printed
default_local_unit_nrdefault unit for local logging (-1 if not yet initialized). Local logging guarantee to each task its own file.
default_global_unit_nrdefault unit for global logging (-1 if not yet initialized). This unit is valid only on the processor with para_envmepos==para_envsource.
para_envthe parallel environment for the output. this might be a super environment of your computation environment i.e. be very careful not to do global operations like broadcast with a subset of its processors (use your computation environment instead).
close_local_unit_on_deallocif the local unit should be closed when this logger is deallocated
close_global_unit_on_deallocwhether the global unit should be closed when this logger is deallocated
suffixa short string that is used as suffix in all the filenames created by this logger. Can be used to guarantee the unicity of generated filename
local_filenamethe root of the name of the file used for local logging (can be different from the name of the file corresponding to default_local_unit_nr, only the one used if the unit needs to be opened)
global_filenamethe root of the name of the file used for global logging (can be different from the name of the file corresponding to default_global_unit_nr, only the one used if the unit needs to be opened)
print_keysprint keys that tell what should be logged/outputted
Note
This should be private, but as the output functions have been moved to another module and there is no "friend" keyword, they are public. DO NOT USE THE INTERNAL COMPONENTS DIRECTLY!!!
History
04.2002 revised [fawzi] 08.2002 major update: retain, release, printkeys, para_env, local logging [fawzi]
Author
Fawzi Mohamed

Definition at line 140 of file cp_log_handling.F.

Field Documentation

◆ ref_count

integer cp_log_handling::cp_logger_type::ref_count = -1

Definition at line 141 of file cp_log_handling.F.

◆ print_level

integer cp_log_handling::cp_logger_type::print_level = -1

Definition at line 142 of file cp_log_handling.F.

◆ default_local_unit_nr

integer cp_log_handling::cp_logger_type::default_local_unit_nr = -1

Definition at line 143 of file cp_log_handling.F.

◆ default_global_unit_nr

integer cp_log_handling::cp_logger_type::default_global_unit_nr = -1

Definition at line 144 of file cp_log_handling.F.

◆ close_local_unit_on_dealloc

logical cp_log_handling::cp_logger_type::close_local_unit_on_dealloc = .FALSE.

Definition at line 145 of file cp_log_handling.F.

◆ close_global_unit_on_dealloc

logical cp_log_handling::cp_logger_type::close_global_unit_on_dealloc = .FALSE.

Definition at line 145 of file cp_log_handling.F.

◆ suffix

character(len=default_string_length) cp_log_handling::cp_logger_type::suffix = ""

Definition at line 146 of file cp_log_handling.F.

◆ local_filename

character(len=default_path_length) cp_log_handling::cp_logger_type::local_filename = ""

Definition at line 147 of file cp_log_handling.F.

◆ global_filename

character(len=default_path_length) cp_log_handling::cp_logger_type::global_filename = ""

Definition at line 147 of file cp_log_handling.F.

◆ para_env

type(mp_para_env_type), pointer cp_log_handling::cp_logger_type::para_env => NULL()

Definition at line 148 of file cp_log_handling.F.

◆ iter_info

type(cp_iteration_info_type), pointer cp_log_handling::cp_logger_type::iter_info => NULL()

Definition at line 149 of file cp_log_handling.F.


The documentation for this type was generated from the following file: