[Dune] [#694] Uniform interface for GridFactory<>

Dune flyspray at dune-project.org
Sun Dec 13 10:42:22 CET 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#694 - Uniform interface for GridFactory<>
User who did this - Oliver Sander (sander)

----------
I agree that a constructor in a virtual base class doesn't actually do anything, but there is a reason for its existence anyways.  There may be unstructured grids that need to be constructed with a nontrivial constructor.  You will need to construct these grids first by hand and then hand over the object to the grid factory.

The example where this occurs currently is UGGrid.  UG allocates a set amount of memory for each grid even before grid creation.  The UGGrid wrapper uses 500MB as a default but if this is not sufficient you need to specify a larger value by hand in the constructor call.  NOTE: I do not think that this is a great way of handling the problem.  In a perfect world the UG memory management would allocate more memory as needed and the parameter was superfluous anyways.  However fixing this would be a lot of work.  Also it would not solve the problem completely, as a another grid with a similar problem may appear eventually.

Maybe we should think about a string-based parameter mechanism for grids and/or grid factories.  This would also simplify other parts, for example the dgf parser where there is currently a special file for each grid implementation just to do the nonstandard grid parameter handling.
----------

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

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