Moved file path handling to regIOobject and made it type specific so now every object can have its own rules. Examples: - faceZones are now processor local (and don't search up anymore) - timeStampMaster is now no longer hardcoded inside IOdictionary (e.g. uniformDimensionedFields support it as well) - the distributedTriSurfaceMesh is properly processor-local; no need for fileModificationChecking manipulation.
28 lines
479 B
C
28 lines
479 B
C
IOobject ioPoints
|
|
(
|
|
"points",
|
|
runTime.timeName(),
|
|
mesh.name(),
|
|
mesh
|
|
);
|
|
|
|
if (ioPoints.typeHeaderOk<pointIOField>(true))
|
|
{
|
|
Info<< "new points available" << endl;
|
|
// Reading new points
|
|
pointIOField newPoints
|
|
(
|
|
IOobject
|
|
(
|
|
"points",
|
|
runTime.timeName(),
|
|
mesh.name(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
)
|
|
);
|
|
|
|
mesh.movePoints(newPoints);
|
|
}
|