BUG: refinementHistory: work with timeStampMaster

This commit is contained in:
mattijs
2012-06-28 15:17:01 +01:00
parent 6e68e105ca
commit 9dc55ec371

View File

@ -1993,11 +1993,17 @@ Foam::hexRef8::hexRef8(const polyMesh& mesh, const bool readHistory)
{ {
if (readHistory) if (readHistory)
{ {
// Make sure we don't use the master-only reading. Bit of a hack for
// now.
regIOobject::fileCheckTypes oldType =
regIOobject::fileModificationChecking;
regIOobject::fileModificationChecking = regIOobject::timeStamp;
history_.readOpt() = IOobject::READ_IF_PRESENT; history_.readOpt() = IOobject::READ_IF_PRESENT;
if (history_.headerOk()) if (history_.headerOk())
{ {
history_.read(); history_.read();
} }
regIOobject::fileModificationChecking = oldType;
} }
if (history_.active() && history_.visibleCells().size() != mesh_.nCells()) if (history_.active() && history_.visibleCells().size() != mesh_.nCells())