Create named subclasses of MeshFunction
Registered by
Anders Logg
It is somewhat difficult/confusing to create MeshFunctions since one must specify the topological dimension.
We could subclass MeshFunction to create named MeshFunctions of specific dimensions. Instead of
MeshFunction<uint> f(mesh, mesh.topology(
we could have
CellFunction<uint> f(mesh);
The list of named MeshFunctions would be
VertexFunction
EdgeFunction
FaceFunction
FacetFunction
CellFunction
This would also be consistent with the named MeshEntity classes and iterators (but slightly inconsistent for the naming of MeshFunction which should really be MeshEntityFunct
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- High
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Anders Logg
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 1.0-beta2
- Started by
- Anders Logg
- Completed by
- Anders Logg
Related branches
Related bugs
Sprints
Whiteboard
This is now implemented.
(?)