All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  IOobject io
13  (
14  "points",
15  Times[timeI].name(),
16  polyMesh::meshSubDir,
17  mesh,
18  IOobject::NO_READ
19  );
20  if (io.typeHeaderOk<pointIOField>(true))
21  {
22  meshMoving = true;
23  break;
24  }
25  }
26  }
27 }
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:434
vectorIOField pointIOField
pointIOField is a vectorIOField.
Definition: pointIOField.H:42
dynamicFvMesh & mesh
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
bool meshMoving