MODFLOW 6
version 6.6.0.dev0
USGS Modular Hydrologic Model
|
Store and issue logging messages to output units.
Data Types | |
type | messagestype |
Container for related messages. More... | |
Functions/Subroutines | |
subroutine | init (this) |
Initialize message storage. More... | |
integer(i4b) function | count (this) |
Return the number of messages currently stored. More... | |
subroutine | set_max (this, imax) |
Set the maximum number of messages. More... | |
subroutine | store (this, msg, substring) |
Add a message to storage. More... | |
subroutine | write_all (this, title, kind, iunit) |
Write all stored messages to standard output. More... | |
subroutine | deallocate (this) |
@ brief Deallocate message storage. More... | |
subroutine, public | write_message (text, iunit, fmt, skipbefore, skipafter, advance) |
Write a message to an output unit. More... | |
subroutine, public | write_message_counter (text, iunit, icount, iwidth, skipbefore, skipafter) |
Write a message with configurable indentation and numbering. More... | |
subroutine, public | write_message_centered (text, linelen, iunit) |
Write horizontally centered text, left-padding as needed. More... | |
integer(i4b) function messagemodule::count | ( | class(messagestype) | this | ) |
this | MessageType object |
Definition at line 49 of file Message.f90.
subroutine messagemodule::deallocate | ( | class(messagestype) | this | ) |
Definition at line 198 of file Message.f90.
subroutine messagemodule::init | ( | class(messagestype) | this | ) |
this | MessageType object |
Definition at line 39 of file Message.f90.
subroutine messagemodule::set_max | ( | class(messagestype) | this, |
integer(i4b), intent(in) | imax | ||
) |
this | MessageType object | |
[in] | imax | maximum number of messages that will be stored |
Definition at line 61 of file Message.f90.
subroutine messagemodule::store | ( | class(messagestype) | this, |
character(len=*), intent(in) | msg, | ||
character(len=*), intent(in), optional | substring | ||
) |
An optional string may be provided to filter out duplicate messages. If any stored messages contain the string the message is not stored.
this | MessageType object | |
[in] | msg | message |
[in] | substring | duplicate pattern |
Definition at line 73 of file Message.f90.
subroutine messagemodule::write_all | ( | class(messagestype) | this, |
character(len=*), intent(in), optional | title, | ||
character(len=*), intent(in), optional | kind, | ||
integer(i4b), intent(in), optional | iunit | ||
) |
An optional title to precede the messages may be provided. The title is printed on a separate line. An arbitrary kind may be specified, e.g. 'note', 'warning' or 'error. A file unit can also be specified to write in addition to stdout.
this | MessageType object | |
[in] | title | message title |
[in] | kind | message kind |
[in] | iunit | file unit |
Definition at line 119 of file Message.f90.
subroutine, public messagemodule::write_message | ( | character(len=*), intent(in) | text, |
integer(i4b), intent(in), optional | iunit, | ||
character(len=*), intent(in), optional | fmt, | ||
integer(i4b), intent(in), optional | skipbefore, | ||
integer(i4b), intent(in), optional | skipafter, | ||
logical(lgp), intent(in), optional | advance | ||
) |
Use advance
to toggle advancing output. Use skipbefore/after
to configure the number of whitespace lines before/after the message.
[in] | text | message to write |
[in] | iunit | output unit to write the message to |
[in] | fmt | format to write the message (default='(a)') |
[in] | skipbefore | number of empty lines before message (default=0) |
[in] | skipafter | number of empty lines after message (default=0) |
[in] | advance | whether to use advancing output (default is .true.) |
Definition at line 208 of file Message.f90.
subroutine, public messagemodule::write_message_centered | ( | character(len=*), intent(in) | text, |
integer(i4b), intent(in) | linelen, | ||
integer(i4b), intent(in), optional | iunit | ||
) |
[in] | text | message to write to iunit |
[in] | linelen | length of line to center text in |
[in] | iunit | output unit to write text |
Definition at line 425 of file Message.f90.
subroutine, public messagemodule::write_message_counter | ( | character(len=*), intent(in) | text, |
integer(i4b), intent(in), optional | iunit, | ||
integer(i4b), intent(in), optional | icount, | ||
integer(i4b), intent(in), optional | iwidth, | ||
integer(i4b), intent(in), optional | skipbefore, | ||
integer(i4b), intent(in), optional | skipafter | ||
) |
The message may exceed 78 characters in length. Messages longer than 78 characters are written across multiple lines. After icount lines, subsequent lines are indented and numbered. Use skipbefore/after to configure the number of empty lines before/after the message.
[in] | text | message to be written |
[in] | iunit | the unit number to which the message is written |
[in] | icount | counter to prepended to the message |
[in] | iwidth | maximum width of the prepended counter |
[in] | skipbefore | optional number of empty lines before message (default=0) |
[in] | skipafter | optional number of empty lines after message (default=0) |
Definition at line 284 of file Message.f90.