38 <<
"Reading object " <<
name()
46 <<
"NO_READ specified for read-constructor of object " <<
name()
56 if (watchIndex_ != -1)
70 "regIOobject::readStream()",
75 ) <<
"cannot find file" 84 "regIOobject::readStream()",
89 ) <<
"cannot open file" 95 <<
"problem while reading header for object " <<
name()
101 if (watchIndex_ != -1)
115 <<
"Reading object " <<
name()
137 <<
" expected " << expectName <<
endl 138 <<
" while reading object " <<
name()
152 <<
"Finished reading " <<
filePath()
184 Pout<<
"regIOobject::read() : " 185 <<
"reading object " <<
name()
186 <<
" from file " <<
endl;
227 if (myComm.
above() != -1)
231 Pout<<
"regIOobject::read() : " 232 <<
"reading object " <<
name()
233 <<
" from processor " << myComm.
above()
258 myComm.
below()[belowI],
273 if (watchIndex_ != -1)
286 if (watchIndex_ != -1)
293 <<
" Re-reading object " <<
name()
294 <<
" from file " << fName <<
endl;
fileName objectPath() const
Return complete path + object name.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool read()
Read object.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileMonitor::fileState getState(const label) const
Get current state of file (using handle)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
static int nProcsSimpleSum
Number of processors at which the sum algorithm changes from linear.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool master(const label communicator=0)
Am I the master process.
#define forAllReverse(list, i)
Reverse loop across all elements in list.
static int & msgType()
Message tag of standard messages.
virtual bool modified() const
Return true if the object's file (or files for objectRegistry)
static label worldComm
Default communicator (all processors)
const word & headerClassName() const
Return name of the class name read from header.
static const List< commsStruct > & linearCommunication(const label communicator=0)
Communication schedule for linear all-to-master (proc 0)
Input inter-processor communications stream.
static fileCheckTypes fileModificationChecking
bool readHeader(Istream &)
Read header.
string & note()
Return non-constant access to the optional note.
fileName filePath() const
Return complete path + object name if the file exists.
void close()
Close Istream.
A class for handling words, derived from string.
const Time & time() const
Return time.
virtual bool readIfModified()
Read object if modified (as set by call to modified)
static const List< commsStruct > & treeCommunication(const label communicator=0)
Communication schedule for tree all-to-master (proc 0)
errorManip< error > abort(error &err)
Structure for communicating between processors.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
prefixOSstream Pout(cout,"Pout")
Istream * objectStream()
Construct and return an IFstream for the object.
Output inter-processor communications stream.
static bool masterOnlyReading
To flag master-only reading of objects.
static bool & parRun()
Is this a parallel run?
static label nProcs(const label communicator=0)
Number of processes in parallel run.
virtual bool readData(Istream &)
Virtual readData function.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const fileName & getFile(const label) const
Get name of file being watched (using handle)
readOption readOpt() const
const labelList & below() const
virtual bool writeData(Ostream &) const =0
Pure virtual writaData function.
void setUnmodified(const label) const
Set current state of file (using handle) to unmodified.
const word & name() const
Return name.
#define InfoInFunction
Report an information message using Foam::Info.