45 maxErrors_(maxErrors),
53 const char* sourceFileName,
54 const int sourceFileLineNumber
61 <<
" in file " << sourceFileName
62 <<
" at line " << sourceFileLineNumber <<
endl
72 const char* sourceFileName,
73 const int sourceFileLineNumber
88 const char* sourceFileName,
89 const int sourceFileLineNumber,
90 const string& ioFileName,
91 const label ioLineNumber
98 <<
" in file " << sourceFileName
99 <<
" at line " << sourceFileLineNumber <<
endl
100 <<
" Reading " << ioFileName;
102 if (ioLineNumber >= 0)
104 os <<
" at line " << ioLineNumber;
116 const char* sourceFileName,
117 const int sourceFileLineNumber,
125 sourceFileLineNumber,
127 ioStream.lineNumber()
135 const char* sourceFileName,
136 const int sourceFileLineNumber,
144 sourceFileLineNumber,
153 if (communicator != -1)
157 Pout<<
"** messageStream with comm:" << communicator
171 const bool collect = severity_ == INFO || severity_ == WARNING;
179 if (!master && collect)
187 os << title().c_str();
194 if (errorCount_ >= maxErrors_)
214 "--> FOAM Serious Error : ",
221 "--> FOAM Warning : ",
An IOstream is an abstract base class for all input/output systems; be they streams,...
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static bool master(const label communicator=0)
Am I the master process.
static label worldComm
Default communicator (all processors)
static bool & parRun()
Is this a parallel run?
const fileName & name() const
Return the dictionary name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
virtual label endLineNumber() const
Return line number of last token in dictionary.
static void printStack(Ostream &)
Helper function to print a stack.
A functionName is a word starting with '#'.
Class to handle messaging in a simple, consistent stream-based manner.
errorSeverity
Severity flags.
OSstream & operator()(const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0)
Convert to OSstream.
messageStream(const string &title, const errorSeverity, const int maxErrors=0)
Construct from components.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
OFstream Snull
Global predefined null output stream "/dev/null".
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
messageStream SeriousError
prefixOSstream Pout(cout, "Pout")
prefixOSstream Sout(cout, "Sout")