Bugfix in pointPatchInterpolation.C

Certain demand driven data not properly cleaned-up on mesh motion (without topo
changes).
This commit is contained in:
Vuko Vukcevic 2018-03-20 14:28:51 +01:00
parent f9f1154734
commit 72ec717d28

View file

@ -407,14 +407,8 @@ const scalarListList& pointPatchInterpolation::patchPatchPointWeights() const
bool pointPatchInterpolation::movePoints() bool pointPatchInterpolation::movePoints()
{ {
if (!patchInterpolators_.empty()) // Clear out patch interpolators to force recalculation
{ patchInterpolators_.clear();
// Reset patch interpolators (also lazy evaluated)
forAll (patchInterpolators_, patchi)
{
patchInterpolators_[patchi].movePoints();
}
}
// Clear out demand driven data // Clear out demand driven data
clearOut(); clearOut();