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().dim())

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 MeshEntityFunction).

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:
milestone icon 1.0-beta2
Started by
Anders Logg
Completed by
Anders Logg

Related branches

Sprints

Whiteboard

This is now implemented.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.