31 void Foam::IOdictionary::readFile(
const bool masterOnly)
38 <<
" from file " <<
endl;
54 <<
"--- IOdictionary " <<
name()
58 Sout<<
"--- End of IOdictionary " <<
name() << nl <<
endl;
66 const List<Pstream::commsStruct>& comms =
88 if (myComm.above() != -1)
93 <<
" from processor " << myComm.above() <<
endl;
120 <<
" to processor " << myComm.below()[belowI] <<
endl;
125 myComm.below()[belowI],
146 <<
"--- IOdictionary " <<
name()
150 Sout<<
"--- End of IOdictionary " <<
name() << nl <<
endl;
fileName objectPath() const
Return complete path + object name.
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)
bool good() const
Return true if next operation might succeed.
static int nProcsSimpleSum
Number of processors at which the sum algorithm changes from linear.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool writeHeader(Ostream &) const
Write header.
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.
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)
OSstream Sout(cout,"Sout")
string & note()
Return non-constant access to the optional note.
Istream & readStream(const word &)
Return Istream and check object type against that given.
void close()
Close Istream.
static const List< commsStruct > & treeCommunication(const label communicator=0)
Communication schedule for tree all-to-master (proc 0)
const word & name() const
Name function is needed to disambiguate those inherited.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
bool writeData(Ostream &) const
WriteData function required for regIOobject write operation.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
prefixOSstream Pout(cout,"Pout")
bool bad() const
Return true if stream is corrupted.
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.
void write(Ostream &, const bool subDict=true) const
Write dictionary, normally with sub-dictionary formatting.
bool readData(Istream &)
ReadData function required for regIOobject read operation.