Zoltan2
|
DebugManager contains the methods that perform output of debug and status messages. More...
#include <Zoltan2_DebugManager.hpp>
Public Member Functions | |
DebugManager (int rank, bool doPrinting, std::ofstream &debugOs, MessageOutputLevel debugLevel) | |
Constructor for output to an ofstream. More... | |
DebugManager (int rank, bool doPrinting, std::ostream &debugOs, MessageOutputLevel debugLevel) | |
Constructor for output to an iostream. More... | |
virtual | ~DebugManager () |
Destructor. More... | |
std::ostream * | getOStream () const |
Return the output stream for debug/status messages. More... | |
MessageOutputLevel | getDebugLevel () const |
Return the highest level of message that will be printed. More... | |
void | print (MessageOutputLevel debugLevel, const std::string &output) |
Print a debug or status message, if this process is one of those that is supposed to be doing output. More... | |
void | printInAllTasks (MessageOutputLevel debugLevel, const std::string &output) |
Print a debug or status message regardless of whether this process is one of those that is supposed to be doing output. More... | |
void | print (MessageOutputLevel debugLevel, const char *output) |
The const char * versions of print functions are needed to avoid the expensive conversion to string. More... | |
void | printInAllTasks (MessageOutputLevel debugLevel, const char *output) |
The const char * versions of print functions are needed to avoid the expensive conversion to string. More... | |
DebugManager contains the methods that perform output of debug and status messages.
An Environment has a DebugManager.
Parameters governing debug/status output:
debug_level
debug_procs
debug_output_stream
debug_output_file
For more information see at their definitions in createAllParameters() in Zoltan2_Parameters.cpp.
If Zoltan2 is compiled with Z2_OMIT_ALL_STATUS_MESSAGES, no status messages will be displayed and status message code is ifdef'd out.
Definition at line 45 of file Zoltan2_DebugManager.hpp.
|
inline |
Constructor for output to an ofstream.
rank | the MPI rank of this process. |
doPrinting | true if this process is one that outputs messages. |
debugOs | the output stream for debug messages. |
debugLevel | the highest level of message to print, messages that are below this level will be ignored. |
Different constructor for file output so we can close the file in the destructor.
Definition at line 59 of file Zoltan2_DebugManager.hpp.
|
inline |
Constructor for output to an iostream.
rank | the MPI rank of this process. |
doPrinting | true if this process is one that outputs messages. |
debugOs | the output stream for debug messages. |
debugLevel | the highest level of message to print, messages that are below this level will be ignored. |
Definition at line 71 of file Zoltan2_DebugManager.hpp.
|
inlinevirtual |
Destructor.
Definition at line 77 of file Zoltan2_DebugManager.hpp.
|
inline |
Return the output stream for debug/status messages.
Definition at line 86 of file Zoltan2_DebugManager.hpp.
|
inline |
Return the highest level of message that will be printed.
Definition at line 90 of file Zoltan2_DebugManager.hpp.
|
inline |
Print a debug or status message, if this process is one of those that is supposed to be doing output.
debugLevel | The level of this message. If it is higher than the debugLevel stated in the constructor, it will be ignored. |
output | The message. |
Definition at line 100 of file Zoltan2_DebugManager.hpp.
|
inline |
Print a debug or status message regardless of whether this process is one of those that is supposed to be doing output.
debugLevel | The level of this message. If it is higher than the debugLevel stated in the constructor, it will be ignored. |
output | The message. |
Definition at line 116 of file Zoltan2_DebugManager.hpp.
|
inline |
The const char * versions of print functions are needed to avoid the expensive conversion to string.
debugLevel | The level of this message. If it is higher than the debugLevel stated in the constructor, it will be ignored. |
output | The message. |
Definition at line 131 of file Zoltan2_DebugManager.hpp.
|
inline |
The const char * versions of print functions are needed to avoid the expensive conversion to string.
debugLevel | The level of this message. If it is higher than the debugLevel stated in the constructor, it will be ignored. |
output | The message. |
Definition at line 146 of file Zoltan2_DebugManager.hpp.