39 namespace functionObjects
54 Foam::functionObjects::syncObjects::syncObjects
75 <<
" root:" << root_ <<
endl;
93 for (
const int proci : pBufs.allProcs())
108 Pout<<
"** to processor " << proci
109 <<
" sendObr:" << sendObr.objectPath()
110 <<
" sending dictionary:" << sendDataDict <<
endl;
112 UOPstream
os(proci, pBufs);
117 pBufs.finishedSends();
119 for (
const int proci : pBufs.allProcs())
127 UIPstream is(proci, pBufs);
131 Pout<<
"** from processor " << proci
132 <<
" receiveObr:" << receiveObr.objectPath()
133 <<
" received dictionary:" << fromProcDict <<
endl;
138 const_cast<objectRegistry&>(receiveObr)
defineTypeNameAndDebug(ObukhovLength, 0)
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static const fileName null
An empty fileName.
static fileName sendPath(const fileName &root, const label proci)
Helper: return path to store data to be sent to processor i.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool & parRun() noexcept
Test if this a parallel run.
static FOAM_NO_DANGLING_REFERENCE const objectRegistry & subRegistry(const objectRegistry &obr, const wordList &names, const label index)
Lookup (sub)objectRegistry by following names of sub registries. Creates non-existing intermediate on...
void sync()
Do all: synchronise all IOFields and objectRegistry.
static constexpr int commGlobal() noexcept
Communicator for all ranks, irrespective of any local worlds.
Abstract base-class for Time/database function objects.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
static label commWarn(const label communicator) noexcept
Alter communicator debugging setting. Warns for use of any communicator differing from specified...
static void writeDict(const objectRegistry &obr, dictionary &dict)
Convert objectRegistry contents into dictionary.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
static fileName receivePath(const fileName &root, const label proci)
Helper: return path to store data to be received from processor i.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
virtual bool execute()
Do nothing.
virtual const word & type() const =0
Runtime type information.
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
addToRunTimeSelectionTable(functionObject, ObukhovLength, dictionary)
virtual bool read(const dictionary &)
Read the syncObjects data.
virtual bool read(const dictionary &dict)
Read and set the function object if its data have changed.
static void readDict(const dictionary &d, objectRegistry &obr)
(recursively) construct and register IOFields from dictionary
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
virtual bool write()
Write the registered objects.
static int debug
Flag to execute debug content.