mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide setter methods for IOobject read/write options etc.
- simplifies local toggling. - centralize fileModification static variables into IOobject. They were previously scattered between IOobject and regIOobject
This commit is contained in:
@ -26,7 +26,7 @@ label timeIndex = 0;
|
||||
|
||||
if (io.typeHeaderOk<IOdictionary>(true, false))
|
||||
{
|
||||
io.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
|
||||
io.readOpt(IOobject::MUST_READ_IF_MODIFIED);
|
||||
IOdictionary timeObject(io);
|
||||
|
||||
timeObject.readEntry("index", timeIndex);
|
||||
|
||||
Reference in New Issue
Block a user