openfoam/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H
mattijs e424059208 ENH: glboal file handling: initial commit
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.
2016-01-25 13:03:15 +00:00

28 lines
665 B
C

// check for "points" in any of the result directories
bool meshMoving = false;
if (Times.size() > 1)
{
// We already loaded a mesh (usually from constant). See if any other
// points files
forAll(Times, timeI)
{
if (Times[timeI].name() != mesh.pointsInstance())
{
IOobject io
(
"points",
Times[timeI].name(),
polyMesh::meshSubDir,
mesh,
IOobject::NO_READ
);
if (io.typeHeaderOk<pointIOField>(true))
{
meshMoving = true;
break;
}
}
}
}