[Dune] [#457] adding generic geometries

Dune dune at dune-project.org
Thu Nov 27 09:27:00 CET 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#457 - adding generic geometries
User who did this - Martin Nolte (nolte)

----------
Discussing the renamings, I would also suggest that Geometry::corner (replacement for Geometry::operator[]) no longer returns a reference but (a copy of) the FieldVector.

Reasons:
* Only native DUNE implementations store their corners as FieldVectors. So the grid has to make a copy anyway or use a dirty cast.
* On-the-fly Grids, like YaspGrid, have to provide additional storage within the geometry to be able to return the references
* In time-critical code, this method should not needed anyway.

The only disadvantage I see is that the vector is copied (or generated) whenever "corner" is called. But the copying is hopefully optimized away be the compiler.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=457#comment680

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list