Revise d2v and v2d maps

Issue #501 resolved
Jan Blechta created an issue

Revise dof_to_vertex_map and vertex_to_dof_map functions after

  1. switching to local DOF indexing
  2. introduction of ghost mesh entities

For instance, dof_to_vertex_map (which is contiguous array) does not contain unowned dofs due to prior global dof indexing. This can change now. Also interaction with ghost meshes was questioned in #493.

Comments (7)

  1. Jan Blechta reporter

    It would need changing the current semantics: working exclusively on the space having just vertex dofs makes dof_to_vertex_map contiguous and one-to-one (when modulated by num_dofs_per_vertex). Something like this does not make a sense for dof_to_facet_map as there is no exclusively-facet space (so far).

    On the other hand "inverse" map facet_to_dof_map could still have a sense. But it then becomes more complex how to modulate it for multiple dofs on one entity.

    Is GenericDofMap interface insufficient for you? Or do you have any more concrete suggestion?

  2. Log in to comment