Pangolin
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
message Module Reference

A module for printing error, warnings etc to stdout. Errors and warnings are duplicated in a log file, written only by the root process. The file is opened at the beginning of the simulation and close at the end. More...

Public Member Functions

subroutine print_step (mesg)
 Print message when a step is validated. More...
 
recursive subroutine print_mesg (mesg, mesg_int)
 Print any kind of string to stdout and log. More...
 
subroutine set_logfile ()
 
subroutine open_logfile ()
 
subroutine close_logfile ()
 
subroutine print_error (mesg, func_name, fname)
 Print error message and exit. More...
 
subroutine print_to_log (mesg)
 Assume the file is opened and the process is root. More...
 
subroutine print_warning (mesg)
 Print a warning. More...
 

Public Attributes

character(80) logfile
 
integer logid = 99
 

Detailed Description

A module for printing error, warnings etc to stdout. Errors and warnings are duplicated in a log file, written only by the root process. The file is opened at the beginning of the simulation and close at the end.

Author
Alexis Praga

Member Function/Subroutine Documentation

subroutine message::close_logfile ( )
subroutine message::open_logfile ( )

Here is the call graph for this function:

subroutine message::print_error ( character(*)  mesg,
character(*)  func_name,
character(*)  fname 
)

Print error message and exit.

Parameters
mesg: message to be printed
func_name: function name
fname: file name

Here is the call graph for this function:

recursive subroutine message::print_mesg ( character(*)  mesg,
integer, optional  mesg_int 
)

Print any kind of string to stdout and log.

Here is the call graph for this function:

subroutine message::print_step ( character(*)  mesg)

Print message when a step is validated.

Here is the call graph for this function:

subroutine message::print_to_log ( character(*)  mesg)

Assume the file is opened and the process is root.

subroutine message::print_warning ( character(*)  mesg)

Print a warning.

Parameters
mesg: message to be printed

Here is the call graph for this function:

subroutine message::set_logfile ( )

Member Data Documentation

character(80) message::logfile
integer message::logid = 99

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