mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Time: not setting IO flags for e.g. fvSolution constructed from Time.
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
// We do not have a top-level mesh. Construct the fvSolution for
|
// We do not have a top-level mesh. Construct the fvSolution for
|
||||||
// the runTime instead.
|
// the runTime instead.
|
||||||
runTime.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
|
|
||||||
fvSolution solutionDict(runTime);
|
fvSolution solutionDict(runTime);
|
||||||
|
|
||||||
const dictionary& pimple = solutionDict.subDict("PIMPLE");
|
const dictionary& pimple = solutionDict.subDict("PIMPLE");
|
||||||
|
|||||||
@ -641,14 +641,16 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
|
|
||||||
//- Not useful anymore. See above.
|
// Create processor directory if non-existing
|
||||||
//// Create processor directory if non-existing
|
if (!Pstream::master() && !isDir(args.path()))
|
||||||
//if (!Pstream::master() && !isDir(args.path()))
|
{
|
||||||
//{
|
Pout<< "Creating case directory " << args.path() << endl;
|
||||||
// Pout<< "Creating case directory " << args.path() << endl;
|
mkDir(args.path());
|
||||||
// mkDir(args.path());
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
|
// Make sure we do not use the master-only reading.
|
||||||
|
regIOobject::fileModificationChecking = regIOobject::timeStamp;
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
|
|
||||||
word regionName = polyMesh::defaultRegion;
|
word regionName = polyMesh::defaultRegion;
|
||||||
|
|||||||
@ -260,6 +260,10 @@ Foam::Time::Time
|
|||||||
readLibs_(controlDict_, "libs"),
|
readLibs_(controlDict_, "libs"),
|
||||||
functionObjects_(*this)
|
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();
|
setControls();
|
||||||
|
|
||||||
// Time objects not registered so do like objectRegistry::checkIn ourselves.
|
// Time objects not registered so do like objectRegistry::checkIn ourselves.
|
||||||
@ -342,10 +346,13 @@ Foam::Time::Time
|
|||||||
readLibs_(controlDict_, "libs"),
|
readLibs_(controlDict_, "libs"),
|
||||||
functionObjects_(*this)
|
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:
|
// Since could not construct regIOobject with setting:
|
||||||
controlDict_.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
|
controlDict_.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
|
||||||
|
|
||||||
|
|
||||||
setControls();
|
setControls();
|
||||||
|
|
||||||
// Time objects not registered so do like objectRegistry::checkIn ourselves.
|
// Time objects not registered so do like objectRegistry::checkIn ourselves.
|
||||||
|
|||||||
Reference in New Issue
Block a user