From a2a3c47d72eebd3b6e5bb12d4571e8182fe2d4ae Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Wed, 3 Aug 2011 09:17:24 +0100 Subject: [PATCH] Add access to motion time index --- src/OpenFOAM/meshes/polyMesh/polyMesh.H | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.H b/src/OpenFOAM/meshes/polyMesh/polyMesh.H index 4b4226aac..baded20f9 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.H +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.H @@ -394,6 +394,12 @@ public: return moving_; } + //- Return current motion time index + label curMotionTimeIndex() const + { + return moving_; + } + //- Set the mesh to be moving bool moving(const bool m) {