objectRegistry, regIOobject: Added support for automatic re-reading of dependent class

Now with the addition of the optional dependenciesModified() function classes
which depend on other classes which are re-read from file when modified are also
automatically updated via their read() function called by
objectRegistry::readModifiedObjects.

This significantly simplifies the update of the solutionControls and modular
solvers when either the controlDict or fvSolution dictionaries are modified at
run-time.
This commit is contained in:
Henry Weller
2023-08-28 20:28:39 +01:00
parent 11c6751927
commit 6054b1fea0
54 changed files with 634 additions and 499 deletions

View File

@ -197,9 +197,6 @@ Foam::scalar Foam::solvers::VoFSolver::maxDeltaT() const
void Foam::solvers::VoFSolver::preSolve()
{
// Read the controls
readControls();
if ((mesh.dynamic() || MRF.size()) && !Uf.valid())
{
Info<< "Constructing face momentum Uf" << endl;