Soil Water Balance (SWB2)
Loading...
Searching...
No Matches
logfiles Module Reference

Data Types

type  logfile_t

Enumerations

enum  {
  dt_year = 1 , dt_month = 2 , dt_day = 3 , dt_diff_fm_utc = 4 ,
  dt_hour = 5 , dt_minutes = 6 , dt_seconds = 7 , dt_milliseconds = 8
}
enum  { log_none = 0 , log_general = 1 , log_debug = 2 , log_all = 3 }

Functions/Subroutines

subroutine set_output_directory_name_sub (this, sdirname)
subroutine set_log_level_sub (this, iloglevel)
subroutine set_screen_echo_sub (this, lecho)
subroutine initialize_logfiles_sub (this, iloglevel, sfileprefix, lwrite_swb_info)
subroutine open_files_write_access_sub (this, lwrite_swb_info)
subroutine close_files_sub (this)
subroutine make_prefix_sub (this)
subroutine write_to_logfiles_sub (this, smessage, itab, ilinesbefore, ilinesafter, iloglevel, lecho)
subroutine writemultiline (smessagetext, ilu, itab, ilinesbefore, ilinesafter)
 Write multiple lines of output to Fortran logical unit.
subroutine split (stext1, stext2)
character(len=len_trim(stext1)+2) function dquote (stext1)
character(len=:) function, allocatable make_timestamp ()

Variables

type(logfile_t), public logs
integer(c_int) current_log_level = LOG_GENERAL
logical(c_bool) current_log_echo = .false._c_bool
logical(c_bool), parameter true = .true._c_bool
character(len=:), allocatable logfile_directory_name

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
dt_year 
dt_month 
dt_day 
dt_diff_fm_utc 
dt_hour 
dt_minutes 
dt_seconds 
dt_milliseconds 

Definition at line 14 of file logfiles.F90.

◆ anonymous enum

anonymous enum
private
Enumerator
log_none 
log_general 
log_debug 
log_all 

Definition at line 21 of file logfiles.F90.

Function/Subroutine Documentation

◆ close_files_sub()

subroutine logfiles::close_files_sub ( class (logfile_t) this)
private

Definition at line 203 of file logfiles.F90.

◆ dquote()

character (len=len_trim(stext1)+2) function logfiles::dquote ( character (len=*), intent(in) stext1)
private

Definition at line 418 of file logfiles.F90.

◆ initialize_logfiles_sub()

subroutine logfiles::initialize_logfiles_sub ( class (logfile_t) this,
integer (c_int), intent(in), optional iloglevel,
character (len=*), intent(in), optional sfileprefix,
logical (c_bool), intent(in), optional lwrite_swb_info )
private

Definition at line 104 of file logfiles.F90.

◆ make_prefix_sub()

subroutine logfiles::make_prefix_sub ( class (logfile_t) this)
private

Definition at line 225 of file logfiles.F90.

◆ make_timestamp()

character (len=:) function, allocatable logfiles::make_timestamp
private

Definition at line 429 of file logfiles.F90.

◆ open_files_write_access_sub()

subroutine logfiles::open_files_write_access_sub ( class (logfile_t), intent(inout) this,
logical (c_bool), intent(in), optional lwrite_swb_info )
private

Definition at line 140 of file logfiles.F90.

Here is the call graph for this function:

◆ set_log_level_sub()

subroutine logfiles::set_log_level_sub ( class (logfile_t) this,
integer (c_int), intent(in) iloglevel )
private

Definition at line 82 of file logfiles.F90.

◆ set_output_directory_name_sub()

subroutine logfiles::set_output_directory_name_sub ( class (logfile_t) this,
character (len=*), intent(in) sdirname )
private

Definition at line 71 of file logfiles.F90.

◆ set_screen_echo_sub()

subroutine logfiles::set_screen_echo_sub ( class (logfile_t) this,
logical (c_bool), intent(in) lecho )
private

Definition at line 93 of file logfiles.F90.

◆ split()

subroutine logfiles::split ( character (len=*), intent(inout) stext1,
character (len=*), intent(inout) stext2 )
private

Definition at line 389 of file logfiles.F90.

◆ write_to_logfiles_sub()

subroutine logfiles::write_to_logfiles_sub ( class (logfile_t) this,
character (len=*), intent(in) smessage,
integer (c_int), intent(in), optional itab,
integer (c_int), intent(in), optional ilinesbefore,
integer (c_int), intent(in), optional ilinesafter,
integer (c_int), intent(in), optional iloglevel,
logical (c_bool), intent(in), optional lecho )
private

Definition at line 255 of file logfiles.F90.

Here is the call graph for this function:

◆ writemultiline()

subroutine logfiles::writemultiline ( character (len=*), intent(in) smessagetext,
integer (c_int), intent(in) ilu,
integer (c_int), intent(in) itab,
integer (c_int), intent(in) ilinesbefore,
integer (c_int), intent(in) ilinesafter )
private

Write multiple lines of output to Fortran logical unit.

Writes one or more lines of an input text string to a Fortran logical unit number. To output multiple lines, insert a tilde (~) at each point in the text string where a carriage return is desired.

Parameters
[in]sMessageTextCharacter string that contains the message to be written.
[in]iLUInteger value of the Fortran logical unit number to write to.

Definition at line 337 of file logfiles.F90.

Here is the call graph for this function:

Variable Documentation

◆ current_log_echo

logical (c_bool) logfiles::current_log_echo = .false._c_bool
private

Definition at line 65 of file logfiles.F90.

◆ current_log_level

integer (c_int) logfiles::current_log_level = LOG_GENERAL
private

Definition at line 64 of file logfiles.F90.

◆ logfile_directory_name

character (len=:), allocatable logfiles::logfile_directory_name
private

Definition at line 67 of file logfiles.F90.

◆ logs

type (logfile_t), public logfiles::logs

Definition at line 62 of file logfiles.F90.

◆ true

logical (c_bool), parameter logfiles::true = .true._c_bool
private

Definition at line 66 of file logfiles.F90.