Skip to content
Snippets Groups Projects
Commit 9dc55ec3 authored by mattijs's avatar mattijs
Browse files

BUG: refinementHistory: work with timeStampMaster

parent 6e68e105
Branches
Tags
No related merge requests found
......@@ -1993,11 +1993,17 @@ Foam::hexRef8::hexRef8(const polyMesh& mesh, const bool 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;
if (history_.headerOk())
{
history_.read();
}
regIOobject::fileModificationChecking = oldType;
}
if (history_.active() && history_.visibleCells().size() != mesh_.nCells())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment