[Dune] Removal of Geometry::dimension and Geometry::dimensionworld

Oliver Sander sander at igpm.rwth-aachen.de
Fri Aug 28 16:41:30 CEST 2015


Dear Dune users,

[This mail particularly addresses users of the git master branch of dune-grid, but may be
of interest to others, too.]

I have just, in commit

af173227bbbefcbe53654d6860f45a13920dab97

removed the two numbers 'dimension' and 'dimensionworld' from the interface of the Geometry
class.  These have been deprecated for a while, and in particular they have been deprecated
in the 2.4 release.  Cf. http://www.dune-project.org/releasenotes/releasenotes-2.4.html

The reason why they are deprecated is that both convey information not about the geometry
itself, but rather about the grid that the geometry is part of.  That can cause several
problems:
- some geometries are not part of any grid
- it confuses: 'dimension' is the dimension of the grid, 'mydimension' is the dimension
  of the geometry, etc.

Unfortunately, it is still not possible to mark enum values with the 'deprecated' attribute.
Therefore, you may be using 'dimension' or 'dimensionworld' without knowing.  In that case,
you code will fail to build the next time you pull from the dune-grid git master.
If that happens: it is not a bug!  Please replace 'Geometry::dimension' by 'Geometry::mydimension'
and 'Geometry::dimensionworld' by 'Geometry::coorddimension'.  Most likely, that's what you
wanted to write in the first place anyway.

Apologies for the hassle,
Oliver

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150828/9212d1b0/attachment.sig>


More information about the Dune mailing list