Generated from logfile.F90 with ROBODoc v3.2.3 on Fri Dec 12 10:36:42 2003

TABLE OF CONTENTS

  1. source/util/tools/logfile
  2. source/util/tools/create_logfile
  3. source/util/tools/write_logfile
  4. source/util/tools/break_logfile
  5. source/util/tools/tstamp_logfile
  6. source/util/tools/open_logfile
  7. source/util/tools/close_logfile

source/util/tools/logfile

NAME
   logfile - maintain a logfile 

DESCRIPTION
   Log file maintenance routines.  These routines enable a
   program to open and close a log file, write time or date
   stamps to the file, and write arbitrary messages to the file.
   The file is kept closed and is only opened for appending
   when information is to be written, avoiding problems with
   unflushed buffers.  For this reason, logfile routines should
   not be called within time-sensitive loops, as the routines
   will generate system calls.

  Provides:    create_logfile (name, parmfile, restart, masterpe)
                       Creates the named log file and writes some header
                      information to it, including the build stamp and
                      the values of all runtime parameters in the global
                      parameter context.  The name of the parameter file
                      is taken as an input; it is echoed to the log file.
                      If restart is true, the file is opened in append
                      mode.  Only the master processor actually writes
                      anything.
              open_logfile()
                      Open the log file for writing, creating it first if
                      necessary.  open_logfile() and close_logfile()
                      should only be used if it is necessary to write
                      something directly to the log file unit with some
                      external routine.
              close_logfile()
                      Close the log file.
              stamp_logfile (string)
                      Write a date stamp and a specified string to the
                      log file.
              tstamp_logfile (n, t, dt)
                      Write a dated timestep stamp for step n, time t,
                      timestep dt to the log file.  n must be an integer,
                      while t and dt must be reals.
              write_logfile (string)
                      Write a string to the log file without a date stamp.
              break_logfile(char)
                      Write a 'break' (a row of char's) to the log file.

                get_perfmon_summary(n_intervals)
                        Called from end_flash, this subroutine calls

USES
   runtime_parameters 


source/util/tools/create_logfile

NAME
     create_logfile
 
SYNOPSIS
     create_logfile (name, parmfile, restart, masterpe)
     create_logfile (character (len=*), character (len=*), logical, integer)

DESCRIPTION
     Creates the named log file and writes some header
     information to it, including the build stamp and
     the values of all runtime parameters in the global
     parameter context.  The name of the parameter file
     is taken as an input; it is echoed to the log file.
     If restart is true, the file is opened in append
     mode.  Only the master processor actually writes
     anything.

ARGUMENTS
     name        name of logfile
     parmfile    name of parameter file being used
     restart     logical flag -- are we restarting an old run?
     masterpe    which MPI task should actually do the writing

PARAMETERS
   run_comment     comment to go at start of logfile
   run_number      number to print out in log file

source/util/tools/write_logfile

NAME
   write_logfile - write to the logfile

SYNOPSIS
   write_logfile(string)
   write_logfile(character (len=*))

DESCRIPTION
   Write a string to the log file.

ARGUMENTS
   string    a string to write out 

PARAMETERS


source/util/tools/break_logfile

NAME
   break_logfile - write to the logfile

SYNOPSIS
   break_logfile(char)
   break_logfile(character(len=1))

DESCRIPTION
   Write a `break' (row of character char) into the log file.

ARGUMENTS
PARAMETERS


source/util/tools/tstamp_logfile

NAME
   tstamp_logfile - stamp the logfile with a time and a timestep

SYNOPSIS
   tstamp_logfile(n, t, dt)
   tstamp_logfile(integer, real, real)

DESCRIPTION
   Write a timestep stamp to the log file.  A timestep stamp is
   a dated stamp containing the step number, simulation time,
   and timestep.

ARGUMENTS
   n          timestep number
   dt         current size of timestep
   t          current simulation time

PARAMETERS


source/util/tools/open_logfile

NAME
   open_logfile - open the logfile for writing.

SYNOPSIS
   open_logfile()

DESCRIPTION
   Open the log file, either in append mode if it already exists
   or as a new file with a default name.

ARGUMENTS
PARAMETERS


source/util/tools/close_logfile

NAME
   close_logfile - close the logfile

SYNOPSIS
   close_logfile()

DESCRIPTION
   Close the log file.

ARGUMENTS
PARAMETERS