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