[Dune] [#900] Can't use GeometryGrid with the PoolAllocator

Dune flyspray at dune-project.org
Wed Mar 30 16:20:32 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#900 - Can't use GeometryGrid with the PoolAllocator
User who did this - Martin Nolte (nolte)

----------
This is a known issue. I don't know where the trouble comes from. It worked fine with the (removed) SmallObjectAllocator, so I'm quite reluctant to waste time on this issue.

The important error message is as follows:
error: incomplete type ‘const Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<void, 10ul> >’ used in nested name specifier

This seems like the old chicken-egg problem in dune-grid. All interface facades require the type of the grid to be passed as a template argument. All they do is extracting the Traits class, ctype, dimension and dimensionworld from it. Moreover, it is the only way the implementation can access grid-specific information. Now, this class can only be complete, once all these facades have been successfully instantiated. When writing a grid you sometimes run into the trouble of using something from the grid class that is not yet allowed to be accessed. Finding this spot is a real piece of work, because the compiler output is not helpful at all.

I suggest to fix (i.e., remove) this chicken-egg problem before tackling this bug. This will, of course, mean changing the template argument list for *all* interface facades in dune-grid. The good news about this is that pure users are not affected by such a change.


----------

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

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