[Dune] question about JacobianInverseTransposed
Martin Nolte
nolte at mathematik.uni-freiburg.de
Mon Aug 4 09:54:56 CEST 2014
Hi Aleksejs,
the setup method you cite is not an initializer for a MultiLinearGeometry but
instead for its contained class JacobianInverseTransposed.
If you look more closely, this class is derived from FieldMatrix and, hence, the
static_cast does nothing but cast a a reference to JacobianInverseTransposed
(namely *this) into the corresponding base class FieldMatrix & (which is
abbreviated by the typedef Base).
Best,
Martin
On 08/04/2014 09:48 AM, Aleksejs Fomins wrote:
> Dear Dune,
>
> I would be happy if someone could explain me the initializer of the
> MultilinearGeometry:
>
>
> ---------------------------------------------------------------
>
> typedef FieldMatrix< ctype, coorddimension, mydimension > Base;
>
> public:
> void setup ( const JacobianTransposed &jt )
> {
> detInv_ = MatrixHelper::template rightInvA< mydimension,
> coorddimension >( jt, static_cast< Base & >( *this ) );
> }
>
> ---------------------------------------------------------------
>
> Namely, I am not sure what does "static_cast< Base & >( *this )" do, and
> thus where the inverse of jt is stored?
>
> Thank you,
> Aleksejs
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
--
Dr. Martin Nolte <nolte at mathematik.uni-freiburg.de>
Universität Freiburg phone: +49-761-203-5630
Abteilung für angewandte Mathematik fax: +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany
More information about the Dune
mailing list