diff --git a/applications/solvers/heatTransfer/chtMultiRegionFoam/readPIMPLEControls.H b/applications/solvers/heatTransfer/chtMultiRegionFoam/readPIMPLEControls.H index 82ac8a2fd2..7405dee8d5 100644 --- a/applications/solvers/heatTransfer/chtMultiRegionFoam/readPIMPLEControls.H +++ b/applications/solvers/heatTransfer/chtMultiRegionFoam/readPIMPLEControls.H @@ -1,6 +1,5 @@ // We do not have a top-level mesh. Construct the fvSolution for // the runTime instead. - runTime.readOpt() = IOobject::MUST_READ_IF_MODIFIED; fvSolution solutionDict(runTime); const dictionary& pimple = solutionDict.subDict("PIMPLE"); diff --git a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C b/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C index 11922c3c38..674e464f2c 100644 --- a/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C +++ b/applications/utilities/parallelProcessing/redistributeMeshPar/redistributeMeshPar.C @@ -641,14 +641,16 @@ int main(int argc, char *argv[]) ); # include "setRootCase.H" - //- Not useful anymore. See above. - //// Create processor directory if non-existing - //if (!Pstream::master() && !isDir(args.path())) - //{ - // Pout<< "Creating case directory " << args.path() << endl; - // mkDir(args.path()); - //} + // Create processor directory if non-existing + if (!Pstream::master() && !isDir(args.path())) + { + Pout<< "Creating case directory " << args.path() << endl; + mkDir(args.path()); + } + + // Make sure we do not use the master-only reading. + regIOobject::fileModificationChecking = regIOobject::timeStamp; # include "createTime.H" word regionName = polyMesh::defaultRegion; diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index af3b5544d8..c44b3393d5 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -260,6 +260,10 @@ Foam::Time::Time readLibs_(controlDict_, "libs"), functionObjects_(*this) { + // Explicitly set read flags on objectRegistry so anything constructed + // from it reads as well (e.g. fvSolution). + readOpt() = IOobject::MUST_READ_IF_MODIFIED; + setControls(); // Time objects not registered so do like objectRegistry::checkIn ourselves. @@ -342,10 +346,13 @@ Foam::Time::Time readLibs_(controlDict_, "libs"), functionObjects_(*this) { + // Explicitly set read flags on objectRegistry so anything constructed + // from it reads as well (e.g. fvSolution). + readOpt() = IOobject::MUST_READ_IF_MODIFIED; + // Since could not construct regIOobject with setting: controlDict_.readOpt() = IOobject::MUST_READ_IF_MODIFIED; - setControls(); // Time objects not registered so do like objectRegistry::checkIn ourselves.