MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / readModifiedObjects

Function readModifiedObjects

src/OpenFOAM/db/Time/TimeIO.C:447–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447void Foam::Time::readModifiedObjects()
448{
449 if (runTimeModifiable_)
450 {
451 // Get state of all monitored objects (=registered objects with a
452 // valid filePath).
453 // Note: requires same ordering in objectRegistries on different
454 // processors!
455 fileHandler().updateStates
456 (
457 (
458 regIOobject::fileModificationChecking == inotifyMaster
459 || regIOobject::fileModificationChecking == timeStampMaster
460 ),
461 Pstream::parRun()
462 );
463
464 // Time handling is special since controlDict_ is the one dictionary
465 // that is not registered to any database.
466
467 if (controlDict_.readIfModified())
468 {
469 readDict();
470 functionObjects_.read();
471
472 if (runTimeModifiable_)
473 {
474 // For IOdictionary the call to regIOobject::read() would have
475 // already updated all the watchIndices via the addWatch but
476 // controlDict_ is an unwatchedIOdictionary so will only have
477 // stored the dependencies as files.
478
479 fileHandler().addWatches(controlDict_, controlDict_.files());
480 }
481 controlDict_.files().clear();
482 }
483
484 bool registryModified = objectRegistry::modified();
485
486 if (registryModified)
487 {
488 objectRegistry::readModifiedObjects();
489 }
490 }
491}
492
493
494bool Foam::Time::writeTimeDict() const

Callers

nothing calls this directly

Calls 4

fileHandlerFunction · 0.85
readDictFunction · 0.70
readMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected