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:434
bool meshMoving
word name(const bool)
Return a word representation of a bool.
Definition: boolIO.C:39