Commit eedb266c authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: polyBoundaryMeshEntries - respect IOobject read flags

parent a1e5e4ab
......@@ -63,9 +63,19 @@ public:
explicit polyBoundaryMeshEntries(const IOobject& io)
:
regIOobject(io),
PtrList<entry>(readStream(typeName))
PtrList<entry>()
{
close();
if
(
(
io.readOpt() == IOobject::MUST_READ
|| io.readOpt() == IOobject::MUST_READ_IF_MODIFIED
)
|| (io.readOpt() == IOobject::READ_IF_PRESENT && headerOk())
)
{
readStream(typeName) >> *this;
}
}
......
Markdown is supported
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