[Dune] How to find element type
Christian Engwer
christian.engwer at uni-muenster.de
Mon Aug 11 13:24:52 CEST 2014
> switch( some_function(referenceElement_.type()) )
that is exactly the way to get the GeometryType, but as it is not an
integer or enum you can not switch on it.
Looking at the documentation
http://www.dune-project.org/doc/doxygen/html/classDune_1_1GeometryType.html
you see that for your simple cases the type provides convinience
methods like isTriangle()
Christian
> {
> case triangle : do 1; break;
> case tetrahedron : do 2; break;
> case sth_else : do 3; break;
> }
>
> can you suggest a nice way to do this.
>
> (I am still editing the Multilinear class)
>
> Regards,
> Aleksejs
>
> P.S. Martin, the AffineGeometry is very helpful :)
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
--
Prof. Dr. Christian Engwer
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster
E-Mail christian.engwer at uni-muenster.de
Telefon +49 251 83-35067
FAX +49 251 83-32729
More information about the Dune
mailing list