diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index ce71727d69..cd70eb3999 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -1047,6 +1047,18 @@ const Foam::pointField& Foam::polyMesh::points() const } +bool Foam::polyMesh::upToDatePoints(const regIOobject& io) const +{ + return io.upToDate(points_); +} + + +void Foam::polyMesh::setUpToDatePoints(regIOobject& io) const +{ + io.eventNo() = points_.eventNo(); +} + + const Foam::faceList& Foam::polyMesh::faces() const { if (clearedPrimitives_) @@ -1132,7 +1144,7 @@ Foam::tmp Foam::polyMesh::movePoints points_.writeOpt() = IOobject::AUTO_WRITE; points_.instance() = time().timeName(); - + points_.eventNo() = getEvent(); tmp sweptVols = primitiveMesh::movePoints ( diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.H b/src/OpenFOAM/meshes/polyMesh/polyMesh.H index 5d95d9cfb8..ffabc4c729 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.H +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -394,6 +394,12 @@ public: //- Return raw points virtual const pointField& points() const; + //- Return true if io is up-to-date with points + virtual bool upToDatePoints(const regIOobject& io) const; + + //- Set io to be up-to-date with points + virtual void setUpToDatePoints(regIOobject& io) const; + //- Return raw faces virtual const faceList& faces() const;