ENH: surfaceFieldValue - update selection on mesh changes

This commit is contained in:
Andrew Heather
2019-05-22 08:15:19 +01:00
parent be84f4542b
commit 1544db3116
2 changed files with 24 additions and 0 deletions

View File

@ -1091,4 +1091,22 @@ bool Foam::functionObjects::fieldValues::surfaceFieldValue::write()
} }
void Foam::functionObjects::fieldValues::surfaceFieldValue::updateMesh
(
const mapPolyMesh& mpm
)
{
needsUpdate_ = true;
}
void Foam::functionObjects::fieldValues::surfaceFieldValue::movePoints
(
const polyMesh& mesh
)
{
needsUpdate_ = true;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -556,6 +556,12 @@ public:
//- Calculate and write //- Calculate and write
virtual bool write(); virtual bool write();
//- Update for changes of mesh
virtual void updateMesh(const mapPolyMesh& mpm);
//- Update for changes of mesh
virtual void movePoints(const polyMesh& mesh);
}; };