From 138fde4759b32965a4007c8590ed28a1950fa532 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 13 Oct 2010 18:28:50 +0100 Subject: [PATCH] ENH: Force checkMesh to re-read cell centres. --- .../mesh/manipulation/checkMesh/checkMesh.C | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkMesh.C b/applications/utilities/mesh/manipulation/checkMesh/checkMesh.C index 13907839f8..6340010ace 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkMesh.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkMesh.C @@ -91,6 +91,22 @@ int main(int argc, char *argv[]) // Clear mesh before checking mesh.clearOut(); + pointIOField overrideCCs + ( + IOobject + ( + "cellCentres", + runTime.constant(), + runTime, + IOobject::MUST_READ, + IOobject::NO_WRITE + ) + ); + + Info<< "Read " << overrideCCs.size() << " cell centres" << endl; + + mesh.overrideCellCentres(overrideCCs); + // Reconstruct globalMeshData mesh.globalData();