wallDist: Ensure appropriate method correct function is called
This commit is contained in:
parent
086131d4a1
commit
5a4a4e5e4a
1 changed files with 9 additions and 2 deletions
|
|
@ -187,7 +187,14 @@ bool Foam::wallDist::movePoints()
|
|||
{
|
||||
if (pdm_->movePoints())
|
||||
{
|
||||
return pdm_->correct(y_, n_());
|
||||
if (nRequired_)
|
||||
{
|
||||
return pdm_->correct(y_, n_());
|
||||
}
|
||||
else
|
||||
{
|
||||
return pdm_->correct(y_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -199,7 +206,7 @@ bool Foam::wallDist::movePoints()
|
|||
void Foam::wallDist::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
pdm_->updateMesh(mpm);
|
||||
pdm_->correct(y_, n_());
|
||||
movePoints();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue