UFC

Add hash value for mesh to ufc::cell

Registered by Anders Logg

The signature for ufc::function::evaluate is

void evaluate(double* values,
                      const double* coordinates,
                      const ufc::cell& cell) const

Sub classes must return the value based on the given coordinates and the cell.

The problem is that (in for example interpolation to different meshes) the cell might originate from another mesh and sub classes have no way to know whether the cell belongs to a different mesh.

We could fix this by adding a hash value for the mesh to ufc::cell:

unsigned int mesh_hash;

This would require the addition of a signature() and a hash() function in dolfin::Mesh.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 2.0
Started by
Garth Wells
Completed by
Garth Wells

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.