[Dune] Dune::Grid::type() and modularization

Oliver Sander sander at mi.fu-berlin.de
Fri Jul 21 12:41:14 CEST 2006


Seems okay to me.  If need be, at run-tim you can still do everything with
a name string instead of an enum value.

--
Oliver

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

On Fri, 21 Jul 2006, Christian Engwer wrote:

> Hi,
>
> one of the major goals of the modularization was to allow developers
> to create new dune-modules beside the official dune repositories. I
> now got feedback that this is not possible for new grids. The problem
> is, when write a new grid outside of dune-grid you can't extend the
> GridIdentifier enum.
>
> To me it seems the only place where the GridIdentifier is used for is
> the association of ID and name. Therefor I suggest to remove the
> type() method and create a name method at the grid. This Method can
> then be used to write an ostream operator for Dune::Grid<..>.
>
> Comments? Suggestion?
>
> Cheers Christian
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://www.dune-project.org/cgi-bin/mailman/listinfo/dune
>


More information about the Dune mailing list