From 2025feef38e54e53069248a5ccda7c41050d6a61 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Wed, 28 Feb 2018 22:48:08 +0100 Subject: [PATCH] Bugfix in deformedGeom Need to create volPointInterpolation object within the time loop (after the mesh has been read) in order to avoid issues related to already calculated demand driven data. --- .../utilities/mesh/manipulation/deformedGeom/deformedGeom.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C b/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C index 080afd2db..55e3b2544 100644 --- a/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C +++ b/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C @@ -53,8 +53,6 @@ int main(int argc, char *argv[]) instantList timeDirs = timeSelector::select0(runTime, args); - volPointInterpolation pInterp(mesh); - pointField zeroPoints(mesh.points()); forAll(timeDirs, timeI) @@ -73,6 +71,9 @@ int main(int argc, char *argv[]) IOobject::MUST_READ ); + // Create volPointInterpolation object after the mesh has been read + volPointInterpolation pInterp(mesh); + // Check U exists if (Uheader.headerOk()) {