openfoam/applications/utilities/postProcessing/dataConversion/foamToGMV/moveMesh.H
Mark Olesen 9a2a22a03a 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
2021-03-17 15:10:00 +01:00

21 lines
422 B
C

{
IOobject io
(
"points",
runTime.timeName(),
mesh.name(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // no register
);
if (io.typeHeaderOk<pointIOField>(true, false))
{
Info<< "new points available" << endl;
// Read new points
io.readOpt(IOobject::MUST_READ);
mesh.movePoints(pointIOField(io));
}
}