Go to the documentation of this file.
39 namespace functionObjects
54 Foam::functionObjects::syncObjects::syncObjects
75 <<
" root:" << root_ <<
endl;
100 for (label proci = 0; proci < nProcs; proci++)
115 Pout<<
"** to processor " << proci
117 <<
" sending dictionary:" << sendDataDict <<
endl;
126 for (label proci = 0; proci < nProcs; proci++)
138 Pout<<
"** from processor " << proci
140 <<
" received dictionary:" << fromProcDict <<
endl;
int debug
Static debugging option.
virtual bool read(const dictionary &)
Read the syncObjects data.
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static fileName sendPath(const fileName &root, const label proci)
Helper: return path to store data to be sent to processor i.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static void readDict(const dictionary &d, objectRegistry &obr)
(recursively) construct and register IOFields from dictionary
static const objectRegistry & subRegistry(const objectRegistry &obr, const wordList &names, const label index)
A class for handling words, derived from Foam::string.
Output inter-processor communications stream operating on external buffer.
A class for handling file names.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
static void writeDict(const objectRegistry &obr, dictionary &dict)
Convert objectRegistry contents into dictionary.
void sync()
Do all: synchronise all IOFields and objectRegistry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
Abstract base-class for Time/database function objects.
Registry of regIOobjects.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
void finishedSends(const bool block=true)
Mark all sends as having been done.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static fileName receivePath(const fileName &root, const label proci)
Macros for easy insertion into run-time selection tables.
static const fileName null
An empty fileName.
static int & msgType() noexcept
Message tag of standard messages.
static int debug
Flag to execute debug content.
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual const word & type() const =0
Runtime type information.
static bool & parRun() noexcept
Test if this a parallel run.
label comm() const noexcept
Communicator.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
defineTypeNameAndDebug(ObukhovLength, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Input inter-processor communications stream operating on external buffer.
fileName objectPath() const
The complete path + object name.
virtual bool execute()
Do nothing.
static label nProcs(const label communicator=worldComm)
Number of processes in parallel run, and 1 for serial run.
virtual bool write()
Write the registered objects.