checkMeshMoving.H
Go to the documentation of this file.
1 // check for "points" in any of the result directories
2 
3 bool meshMoving = false;
4 if (Times.size() > 1)
5 {
6  // We already loaded a mesh (usually from constant). See if any other
7  // points files
8  forAll(Times, timeI)
9  {
10  if (Times[timeI].name() != mesh.pointsInstance())
11  {
12  typeIOobject<pointIOField> io
13  (
14  "points",
15  Times[timeI].name(),
16  polyMesh::meshSubDir,
17  mesh,
18  IOobject::NO_READ
19  );
20 
21  if (io.headerOk())
22  {
23  meshMoving = true;
24  break;
25  }
26  }
27  }
28 }
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:433
bool meshMoving
const fileName & pointsInstance() const
Return the current instance directory for points.
Definition: polyMesh.C:988
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.