Bugfix: missing updateMesh call for function objects
Function object updates on topo changes are now properly handled
This commit is contained in:
parent
2c007a1404
commit
b4f9cbd029
2 changed files with 6 additions and 2 deletions
|
@ -1232,10 +1232,11 @@ Foam::tmp<Foam::scalarField> Foam::polyMesh::movePoints
|
|||
geometricD_ = Vector<label>::zero;
|
||||
solutionD_ = Vector<label>::zero;
|
||||
|
||||
// Update all function objects
|
||||
// Update all mesh objects
|
||||
// Moved from fvMesh.C in 1.6.x merge. HJ, 29/Aug/2010
|
||||
meshObjectBase::allMovePoints<polyMesh>(*this);
|
||||
|
||||
// Update all function objects
|
||||
const_cast<Time&>(time()).functionObjects().movePoints(allPoints_);
|
||||
|
||||
return sweptVols;
|
||||
|
|
|
@ -75,9 +75,12 @@ void Foam::polyMesh::updateMesh(const mapPolyMesh& mpm)
|
|||
geometricD_ = Vector<label>::zero;
|
||||
solutionD_ = Vector<label>::zero;
|
||||
|
||||
// Update all function objects
|
||||
// Update all mesh objects
|
||||
// Moved from fvMesh.C in 1.6.x merge. HJ, 29/Aug/2010
|
||||
meshObjectBase::allUpdateTopology<polyMesh>(*this, mpm);
|
||||
|
||||
// Update all function objects
|
||||
const_cast<Time&>(time()).functionObjects().updateMesh(mpm);
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue