diff --git a/src/finiteVolume/fvMesh/wallDist/wallDist/wallDist.C b/src/finiteVolume/fvMesh/wallDist/wallDist/wallDist.C index 7d53f566b2db0b732c7bf892158ba79ef1f4a515..d13c2bed1a0e881ddefb49d4739ebfbde7d0e856 100644 --- a/src/finiteVolume/fvMesh/wallDist/wallDist/wallDist.C +++ b/src/finiteVolume/fvMesh/wallDist/wallDist/wallDist.C @@ -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(); }