39 namespace functionObjects
54 Foam::functionObjects::syncObjects::syncObjects
75 <<
" root:" << root_ <<
endl;
97 for (
const int proci : pBufs.allProcs())
107 dictionary sendDataDict;
112 Pout<<
"** to processor " << proci
113 <<
" sendObr:" << sendObr.objectPath()
114 <<
" sending dictionary:" << sendDataDict <<
endl;
116 UOPstream
os(proci, pBufs);
121 pBufs.finishedSends();
123 for (
const int proci : pBufs.allProcs())
131 UIPstream is(proci, pBufs);
132 const dictionary fromProcDict(is);
135 Pout<<
"** from processor " << proci
136 <<
" receiveObr:" << receiveObr.objectPath()
137 <<
" received dictionary:" << fromProcDict <<
endl;
142 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 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.
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 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
"nonBlocking" : (MPI_Isend, MPI_Irecv)
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.
static constexpr label commGlobal() noexcept
Communicator for all ranks, irrespective of any local worlds.