[Dune] How to find element type
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon Aug 4 11:16:09 CEST 2014
Dear Dune,
I have a referenceElement_
(Dune::ReferenceElement< ctype, mydimension ),
and I would like to find out the name of the element type. I would like
to write sth like this:
switch( some_function(referenceElement_.type()) )
{
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 :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140804/f921ee6f/attachment.sig>
More information about the Dune
mailing list