[Dune] grid.geometry is a bit restrictive
Christian Engwer
christian.engwer at uni-muenster.de
Fri Feb 27 15:34:19 CET 2015
Dear Aleksejs,
On Fri, Feb 27, 2015 at 12:06:16PM +0100, Aleksejs Fomins wrote:
> Dear Dune,
>
> I just realised that CurvilinearGeometry has quite a few new user methods compared to linear geometries, for example, access to interpolation vertices, interpolation polynomials and functions thereof. The wrapper interface of grid.geometry class does not allow for adding these additional methods, so they will need to be accessed some other way.
>
> I have decided to provide a grid method grid.basegeometry(entity),
> which would directly return the Dune::CurvilinearGeometry class, and
> not its grid wrapper. I realise that this goes against the paradigm of
> "protecting the users from themselves", but I do not see a good
> alternative at the moment.
There is the method grid.getRealImplementation(...) which returns the
implementation hidden in the facades class. My advice is not to add your
new method on the grid, as it is just a more specific version of the
getRealImplementation method.
Besides this... why do you need these additional methods? If you
consider them necessary, please open a feature-request and let
everybody discuss this topic. I havent worked a lot with higher order
transformations, but I never had the need to access these additional
information from user code.
Christian
>
> Regards,
> Aleksejs
>
> _______________________________________________
> 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