Go to the documentation of this file.
46 maxErrors_(maxErrors),
64 Pout<<
"** messageStream with comm:" << communicator
82 const char* functionName,
83 const char* sourceFileName,
84 const int sourceFileLineNumber
90 <<
" From function " << functionName <<
endl
91 <<
" in file " << sourceFileName
92 <<
" at line " << sourceFileLineNumber <<
endl
101 const string& functionName,
102 const char* sourceFileName,
103 const int sourceFileLineNumber
108 functionName.c_str(),
117 const char* functionName,
118 const char* sourceFileName,
119 const int sourceFileLineNumber,
120 const string& ioFileName,
121 const label ioStartLineNumber,
122 const label ioEndLineNumber
128 <<
" From function " << functionName <<
endl
129 <<
" in file " << sourceFileName
130 <<
" at line " << sourceFileLineNumber <<
endl
131 <<
" Reading " << ioFileName;
133 if (ioStartLineNumber >= 0 && ioEndLineNumber >= 0)
135 os <<
" from line " << ioStartLineNumber
136 <<
" to line " << ioEndLineNumber;
138 else if (ioStartLineNumber >= 0)
140 os <<
" at line " << ioStartLineNumber;
151 const char* functionName,
152 const char* sourceFileName,
153 const int sourceFileLineNumber,
161 sourceFileLineNumber,
163 ioStream.lineNumber(),
171 const char* functionName,
172 const char* sourceFileName,
173 const int sourceFileLineNumber,
181 sourceFileLineNumber,
193 bool collect = (severity_ == INFO || severity_ == WARNING);
206 Pout<< title().c_str();
210 Sout<< title().c_str();
218 if (errorCount_ >= maxErrors_)
246 "--> FOAM Serious Error : ",
253 "--> FOAM Warning : ",
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
OFstream Snull
Global predefined null output stream "/dev/null".
Class to handle messaging in a simple, consistent stream-based manner.
const fileName & name() const
Return the dictionary name.
errorSeverity
Severity flags.
OSstream & masterStream(const label communicator)
Convert to OSstream.
static bool & parRun()
Is this a parallel run?
An IOstream is an abstract base class for all input/output systems; be they streams,...
Ostream & endl(Ostream &os)
Add newline and flush stream.
messageStream(const string &title, errorSeverity, const int maxErrors=0)
Construct from components.
static void printStack(Ostream &)
Helper function to print a stack.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label startLineNumber() const
Return line number of first token in dictionary.
label endLineNumber() const
Return line number of last token in dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManip< error > abort(error &err)
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
static bool master(const label communicator=0)
Am I the master process.
messageStream SeriousError
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
prefixOSstream Pout(cout, "Pout")
static label worldComm
Default communicator (all processors)
OSstream Sout(cout, "Sout")
stressControl lookup("compactNormalStress") >> compactNormalStress