mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: wallDist - suppress calc if updateInterval is zero
This commit is contained in:
@ -197,7 +197,11 @@ const Foam::volVectorField& Foam::wallDist::n() const
|
||||
|
||||
bool Foam::wallDist::movePoints()
|
||||
{
|
||||
if ((mesh_.time().timeIndex() % updateInterval_) == 0)
|
||||
if
|
||||
(
|
||||
(updateInterval_ != 0)
|
||||
&& ((mesh_.time().timeIndex() % updateInterval_) == 0)
|
||||
)
|
||||
{
|
||||
requireUpdate_ = true;
|
||||
}
|
||||
@ -227,6 +231,11 @@ bool Foam::wallDist::movePoints()
|
||||
void Foam::wallDist::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
pdm_->updateMesh(mpm);
|
||||
|
||||
// Force update if performing topology change
|
||||
// Note: needed?
|
||||
// - field would have been mapped, so if using updateInterval option (!= 1)
|
||||
// live with error associated of not updating and use mapped values?
|
||||
requireUpdate_ = true;
|
||||
movePoints();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user