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.
This commit is contained in:
Vuko Vukcevic 2018-02-28 22:48:08 +01:00
parent 7459da3a36
commit 2025feef38

View file

@ -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())
{