MeshDomain caches MeshFunctions, therefore will not reflect changes in MeshValueCollections

Bug #973919 reported by Garth Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Confirmed
High
Unassigned

Bug Description

The MeshDomains class holds MeshValueCollections to denote mesh (sub-)domains. It has a convenience function that converts a MeshValueCollection into a MeshFunction, and then caches the MeshFunction. If the MeshValueCollection is changed, the MeshFunction will not reflect this change.

Simplest fix is to not cache MeshFunction, and make the caller responsible for managing efficient re-use. This is another example of why caching should generally be avoided.

Changed in dolfin:
status: New → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.