#include <source/toolbox/base/PIO.h>
Static Public Member Functions | |
static void | initialize () |
static void | finalize () |
static void | logOnlyNodeZero (const string &filename) |
static void | logAllNodes (const string &filename) |
static void | suspendLogging () |
static void | resumeLogging () |
By default, logging is disabled. To enable logging, call one of the routines logOnlyNodeZero() or logAllNodes(). Logging may be suspended and resumed.
|
Initialize the parallel I/O streams. This routine must be called before using pout, perr, or plog. This routine is automatically invoked by the SAMRAI library start-up routines. This routine must be called after the MPI routines have been initialized. |
|
Shut down the parallel I/O streams and close log files. This routine must be called before program termination and is currently invoked from the SAMRAI library shutdown procedure. |
|
Log messages for node zero only to the specified filename. All output to pout, perr, and plog on node zero will go to the log file. |
|
Log messages from all nodes. The diagnostic data for processor XXXXX will be sent to a file with the name filename.XXXXX, where filename is the function argument. |
|
Temporarily suspend file logging. Log file output will be discarded, although the output file will not be closed. Logging can be resumed by calling member function resumeLogging(). |
|
Resume logging after logging was suspended via member function suspendLogging(). |