40 const bool masterOnly =
54 ok = fp.readHeader(*
this, fName, Type::typeName);
55 if (ok && checkType && headerClassName_ != Type::typeName)
58 <<
"unexpected class name " << headerClassName_
59 <<
" expected " << Type::typeName
60 <<
" when reading " << fName <<
endl;
82 << Type::typeName <<
' ' <<
name()
83 <<
" constructed with IOobject::MUST_READ_IF_MODIFIED"
84 " but " << Type::typeName
85 <<
" does not support automatic rereading."
94 return typeHeaderOk<Type>(
true);
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
bool typeHeaderOk(const bool checkType)
Read header using typeGlobalFile to find file.
void warnNoRereading() const
Helper: warn that type does not support re-reading.
fileName filePath(const bool global) const
Return complete path + object name if the file exists.
static fileCheckTypes fileModificationChecking
Type of file modification checking.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
static bool master(const label communicator=0)
Am I the master process.
A class for handling file names.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
#define WarningInFunction
Report a warning using Foam::Warning.
const fileOperation & fileHandler()
Get current file handler.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Trait for obtaining global write status.
Trait for obtaining global status.