Skip to content
Snippets Groups Projects
Commit 024f9c1e authored by Henry's avatar Henry
Browse files

wallDist: Ensure appropriate method correct function is called

parent a92a04f1
Branches
Tags
No related merge requests found
...@@ -187,7 +187,14 @@ bool Foam::wallDist::movePoints() ...@@ -187,7 +187,14 @@ bool Foam::wallDist::movePoints()
{ {
if (pdm_->movePoints()) if (pdm_->movePoints())
{ {
return pdm_->correct(y_, n_()); if (nRequired_)
{
return pdm_->correct(y_, n_());
}
else
{
return pdm_->correct(y_);
}
} }
else else
{ {
...@@ -199,7 +206,7 @@ bool Foam::wallDist::movePoints() ...@@ -199,7 +206,7 @@ bool Foam::wallDist::movePoints()
void Foam::wallDist::updateMesh(const mapPolyMesh& mpm) void Foam::wallDist::updateMesh(const mapPolyMesh& mpm)
{ {
pdm_->updateMesh(mpm); pdm_->updateMesh(mpm);
pdm_->correct(y_, n_()); movePoints();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment