[Dune] Relation between indices in Intersection::indexInInside() and Entity::subEntity<1>(...)

Jö Fahlke jorrit at jorrit.de
Thu Feb 18 16:20:02 CET 2016


Am Thu, 18. Feb 2016, 15:54:39 +0100 schrieb Ansgar Burchardt:
> Date: Thu, 18 Feb 2016 15:54:39 +0100
> From: Ansgar Burchardt <Ansgar.Burchardt at tu-dresden.de>
> To: dune at dune-project.org
> Subject: [Dune] Relation between indices in Intersection::indexInInside()
>  and Entity::subEntity<1>(...)
> 
> Hi,
> 
> is the index returned by the Intersection::indexInInside() method the
> same as Entity::subEntity<1>() uses?  That is, can I get the
> intersection's facet by
> 
>   auto inside = intersection.inside();
>   auto insideFace = inside.subEntity<1>(intersection.indexInInside());

Yes.

> (Even easier would of course be a method Intersection::insideFacet().)

There is only once facet for a given intersection, i.e. insideFacet() and
outsideFacet() would be identical.

> The description of indexInInside() says
> 
>   Local index of codim 1 entity
>   This method returns the face number with respect to the generic
>   reference element.
> 
> and subEntity() uses
> 
>   number of the subentity (in generic numbering)
> 
> It is not clear to me if these are required to be the same. 

Any idea how to formulate it better?

Regards,
Jö.

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

It is my conviction that killing under the cloak of war is nothing but
an act of murder.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20160218/59059141/attachment.sig>


More information about the Dune mailing list