LightKrylov_Logger Module


Uses


Subroutines

public subroutine check_info(info, origin, module, procedure, info_msg)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: info

Informaion flag

character(len=*), intent(in) :: origin

The name of the subroutine from which the flag originates

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

character(len=*), intent(in), optional :: info_msg

public subroutine check_test(error, test_name, info, eq, context)

Arguments

Type IntentOptional Attributes Name
type(error_type), intent(inout), allocatable :: error
character(len=*), intent(in) :: test_name
character(len=*), intent(in), optional :: info
character(len=*), intent(in), optional :: eq
character(len=*), intent(in), optional :: context

public subroutine comm_close()

Arguments

None

public subroutine comm_setup()

Arguments

None

public subroutine log_debug(msg, module, procedure)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

Log message to print

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

public subroutine log_error(msg, module, procedure, stat, errmsg)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

Log message to print

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

integer, intent(in), optional :: stat

status message

character(len=*), intent(in), optional :: errmsg

error message

public subroutine log_information(msg, module, procedure, flush_log)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

Log message to print

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

logical, intent(in), optional :: flush_log

Flush the I/O buffer?

public subroutine log_message(msg, module, procedure, flush_log)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

Log message to print

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

logical, intent(in), optional :: flush_log

Flush the I/O buffer?

public subroutine log_warning(msg, module, procedure)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

Log message to print

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

public subroutine logger_setup(logfile, nio, log_level, log_stdout, log_timestamp, close_old, iunit)

Wrapper to set up MPI if needed and initialize log files

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: logfile

name of the dedicated LightKrylov logfile

integer, intent(in), optional :: nio

I/O rank for logging

integer, intent(in), optional :: log_level

set logging level 0 : all_level 10 : debug_level 20 : information_level 30 : warning_level 40 : error_level
100 : none_level

logical, intent(in), optional :: log_stdout

duplicate log messages to stdout?

logical, intent(in), optional :: log_timestamp

add timestamp to log messages

logical, intent(in), optional :: close_old

close previously opened logfiles (if present?) - stdout is not closed

integer, intent(out), optional :: iunit

log unit identifier

public subroutine stop_error(msg, module, procedure)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: msg

The name of the procedure in which the call happens

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens

public subroutine type_error(var, type, intent, module, procedure)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: var

Name of the variable

character(len=*), intent(in) :: type

Required type of the variable

character(len=*), intent(in) :: intent

Intent of the argument within the caller

character(len=*), intent(in), optional :: module

The name of the module in which the call happens

character(len=*), intent(in), optional :: procedure

The name of the procedure in which the call happens