36 namespace functionObjects
52 bool Foam::functionObjects::writeDictionary::tryDirectory
59 typeIOobject<IOdictionary> dictIO
69 if (dictIO.headerOk())
71 IOdictionary
dict(dictIO);
73 if (
dict.digest() != digests_[dictI])
88 digests_[dictI] =
dict.digest();
135 dictNames_ = uniqueNames.
toc();
139 Info<<
type() <<
" " <<
name() <<
": monitoring dictionaries:" <<
nl;
140 if (dictNames_.size())
144 Info<<
" " << dictNames_[i] <<
endl;
165 bool firstDict =
true;
168 if (obr_.foundObject<
dictionary>(dictNames_[i]))
173 if (
dict.digest() != digests_[i])
184 digests_[i] =
dict.digest();
193 bool processed = tryDirectory(i, time_.name(), firstDict);
197 processed = tryDirectory(i, time_.constant(), firstDict);
202 processed = tryDirectory(i, time_.system(), firstDict);
207 Info<<
" Unable to locate dictionary " << dictNames_[i]
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
A HashTable with keys but without contents.
List< Key > toc() const
Return the table of contents.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
void setSize(const label)
Reset size of List.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
virtual const word & type() const =0
Runtime type information.
const word & name() const
Return the name of this functionObject.
Writes dictionaries on start-up and on change.
writeDictionary(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual bool execute()
Execute, currently does nothing.
virtual bool write()
Write the selected dictionaries.
virtual ~writeDictionary()
Destructor.
virtual bool read(const dictionary &)
Read the writeDictionary data.
Registry of regIOobjects.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.