Skip to content
Snippets Groups Projects
Commit f36d9dc3 authored by Oliver Sander's avatar Oliver Sander
Browse files

Implement the subIndex method for entities of all dimensions

Previously, it was available only for elements.

The following question appears: what does the codim-parameter in

  template<int cc>
  unsigned int subIndex (const Codim<cc>::Entity& e,
                         int i,
                         unsigned int codim) const

mean?  Is it the codimension wrt to the grid, or wrt to the entity e?
I did not find this documented anywhere, and therefore made my own
choice.  The 'codim' in this patch is the codimension with respect
to the *grid*.
parent a65825d4
No related branches found
No related tags found
1 merge request!95Implement the subIndex method for entities of all dimensions
Pipeline #
Loading
  • Martin Nolte @martin.nolte ·
    Maintainer

    There is an obvious choice: It is the codimension with respect to the grid (as you guessed). This is what you get from

    ReferenceElement::subEntity(i,c,ii,cc)

    Please refer to the original implementor is this method for semantics.

    I will update the documentation of index set and id set accordingly.

    Edited by Martin Nolte
  • Martin Nolte @martin.nolte ·
    Maintainer

    I updated the documentation for IndexSet in !97 (merged). For IdSets, the corresponding method seems to be missing, see #29.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment