Skip to content
Snippets Groups Projects
Commit a5f59cd9 authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Andrew Heather
Browse files

BUG: nearWallDist not updated throughout optimisation loops

Partially fixes #2502 (see discussion there)
parent 03b2023d
Branches
Tags
1 merge request!518ENH: adjoint code review
...@@ -128,7 +128,10 @@ void Foam::displacementMethod::update() ...@@ -128,7 +128,10 @@ void Foam::displacementMethod::update()
mesh_.movePoints(tnewPoints()); mesh_.movePoints(tnewPoints());
scalar timeAft = mesh_.time().elapsedCpuTime(); scalar timeAft = mesh_.time().elapsedCpuTime();
Info<< "Mesh movement took " << timeAft - timeBef << " seconds" << endl; Info<< "Mesh movement took " << timeAft - timeBef << " seconds" << endl;
mesh_.moving(false); if (!mesh_.steady())
{
mesh_.moving(false);
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment