[Dune] [#773] mesh readers and grid factory

Dune flyspray at dune-project.org
Wed Apr 14 13:26:13 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#773 - mesh readers and grid factory
User who did this - Martin Nolte (nolte)

----------
The DGF parser cannot return the factory, because it shall also work with grids that don't provide one (e.g., YaspGrid).

For other grid format readers (AmiraMeshReader / GmshReader) Carsten's suggestion seems reasonable to me. The code could then look somewhat like this one:

GridFactory factory;
GmshReader reader( factory );
reader.read( file );
Grid *grid = factory.createGrid();

Apart from the access to insertion indices, the user can also change the constructor of the grid factory this way. The disadvantage is that a user could read two different grid files into one grid, which might yield unpredictable results.
----------

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

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