39 namespace functionObjects
54 Foam::functionObjects::syncObjects::syncObjects
75 <<
" root:" << root_ <<
endl;
99 for (
const int proci : pBufs.allProcs())
109 dictionary sendDataDict;
114 Pout<<
"** to processor " << proci
115 <<
" sendObr:" << sendObr.objectPath()
116 <<
" sending dictionary:" << sendDataDict <<
endl;
118 UOPstream
os(proci, pBufs);
123 pBufs.finishedSends();
125 for (
const int proci : pBufs.allProcs())
133 UIPstream is(proci, pBufs);
134 const dictionary fromProcDict(is);
137 Pout<<
"** from processor " << proci
138 <<
" receiveObr:" << receiveObr.objectPath()
139 <<
" received dictionary:" << fromProcDict <<
endl;
144 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.
static int & msgType() noexcept
Message tag of standard messages.
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 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.
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
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.