[Dune] Question about the GenericReferenceElements

Oliver Sander sander at mi.fu-berlin.de
Fri Oct 22 14:43:52 CEST 2010


Dear Dune!
I just had a look at the GenericReferenceElement class.
I learned that said class has methods

template<  int  codim>
FieldVector<  ctype, dim>
global(const  FieldVector<  ctype, dim-codim>  &local,int  i )

and

template<  int  codim>
FieldVector<  ctype, dim>
global(const  FieldVector<  ctype, dim-codim>  &local,int  i,int  c )  const

Their documentations appear to be identical, with the exception of a
note saying "The runtime argument c is redundant and must equal codim"
for the second method.  And indeed the method throws an exception
if c!=codim.


Why do we have this seemingly pointless method as part
of our grid interface?

Best,
Oliver

-- 

************************************************************************
* Oliver Sander                ** email: sander at mi.fu-berlin.de        *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75348           *
* Institut für Mathematik      ** URL  : page.mi.fu-berlin.de/~sander  *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20101022/cfbb2b41/attachment.htm>


More information about the Dune mailing list