| 445 | |
| 446 | |
| 447 | void 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 | |
| 494 | bool Foam::Time::writeTimeDict() const |
nothing calls this directly
no test coverage detected