mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
wallDist: Ensure appropriate method correct function is called
This commit is contained in:
@ -186,10 +186,17 @@ const Foam::volVectorField& Foam::wallDist::n() const
|
||||
bool Foam::wallDist::movePoints()
|
||||
{
|
||||
if (pdm_->movePoints())
|
||||
{
|
||||
if (nRequired_)
|
||||
{
|
||||
return pdm_->correct(y_, n_());
|
||||
}
|
||||
else
|
||||
{
|
||||
return pdm_->correct(y_);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -199,7 +206,7 @@ bool Foam::wallDist::movePoints()
|
||||
void Foam::wallDist::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
pdm_->updateMesh(mpm);
|
||||
pdm_->correct(y_, n_());
|
||||
movePoints();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user