Go to the documentation of this file.
38 Pout<<
"regIOobject::readStream() : "
39 <<
"reading object " <<
name()
47 <<
"NO_READ specified for read-constructor of object " <<
name()
71 "regIOobject::readStream()",
76 ) <<
"cannot find file"
85 "regIOobject::readStream()",
90 ) <<
"cannot open file"
96 <<
"problem while reading header for object " <<
name()
115 Pout<<
"regIOobject::readStream(const word&) : "
116 <<
"reading object " <<
name()
117 <<
" from file " << objectPath()
132 && headerClassName() != expectName
133 && headerClassName() !=
"dictionary"
137 <<
"unexpected class name " << headerClassName()
138 <<
" expected " << expectName <<
endl
139 <<
" while reading object " <<
name()
152 Pout<<
"regIOobject::close() : "
153 <<
"finished reading " << filePath()
185 Pout<<
"regIOobject::read() : "
186 <<
"reading object " <<
name()
187 <<
" from file " <<
endl;
195 ok = readData(readStream(
type()));
217 const_cast<word&
>(headerClassName()),
228 if (myComm.
above() != -1)
232 Pout<<
"regIOobject::read() : "
233 <<
"reading object " <<
name()
234 <<
" from processor " << myComm.
above()
249 ok = readData(fromAbove);
258 myComm.
below()[belowI],
273 if (watchIndex_ != -1)
286 if (watchIndex_ != -1)
290 const fileName& fName = time().getFile(watchIndex_);
291 Info<<
"regIOobject::readIfModified() : " <<
nl
292 <<
" Re-reading object " <<
name()
293 <<
" from file " << fName <<
endl;
fileName filePath() const
Return complete path + object name if the file exists.
Istream * objectStream()
Construct and return an IFstream for the object.
A class for handling words, derived from string.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
Output inter-processor communications stream.
bool read(const char *, int32_t &)
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Time & time() const
Return time.
fileName objectPath() const
Return complete path + object name.
void setUnmodified(const label) const
Set current state of file (using handle) to unmodified.
virtual bool modified() const
Return true if the object's file (or files for objectRegistry)
readOption readOpt() const
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const word & headerClassName() const
Return name of the class name read from header.
label watchIndex_
Modification watch index.
const word & name() const
Return name.
Istream * isPtr_
Istream for reading.
const bool writeData(readBool(pdfDictionary.lookup("writeData")))
virtual bool readIfModified()
Read object if modified (as set by call to modified)
static bool masterOnlyReading
To flag master-only reading of objects.
errorManip< error > abort(error &err)
Structure for communicating between processors.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
static bool master(const label communicator=0)
Am I the master process.
static int nProcsSimpleSum
Number of processors at which the sum algorithm changes from linear.
static fileCheckTypes fileModificationChecking
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Istream & readStream()
Return Istream.
prefixOSstream Pout(cout, "Pout")
void close()
Close Istream.
static label worldComm
Default communicator (all processors)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual bool readData(Istream &)
Virtual readData function.
Input inter-processor communications stream.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
bool readHeader(Istream &)
Read header.
static const List< commsStruct > & linearCommunication(const label communicator=0)
Communication schedule for linear all-to-master (proc 0)
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
word name(const complex &)
Return a string representation of a complex.
const labelList & below() const
static const List< commsStruct > & treeCommunication(const label communicator=0)
Communication schedule for tree all-to-master (proc 0)
const fileName & getFile(const label) const
Get name of file being watched (using handle)