[Dune] [#651] Declaration of hasHierarchicIndexSet for GeometryGrid (Attachment added)
Dune
dune at dune-project.org
Thu Nov 5 15:58:13 CET 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Oliver Sander (sander)
Attached to Project - Dune
Summary - Declaration of hasHierarchicIndexSet for GeometryGrid
Task Type - Bug Report
Category - Grid
Status - New
Assigned To -
Operating System - Unspecified / All
Severity - Medium
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - While playing around with GeometryGrid I found out that code will only compile if I declare
namespace Dune
{
namespace Capabilities
{
template< class Grid >
struct hasHierarchicIndexSet
{
static const bool v = false;
};
template< class Grid >
struct hasHierarchicIndexSet< const Grid >
{
static const bool v = hasHierarchicIndexSet< Grid >::v;
};
}
}
early enough. In fact, this piece of code can also be found in the GeometryGrid unit test. If it is left out, the compiler objects:
/export/local-1/daten/users/sander/dune/dune-grid/dune/grid/geometrygrid/grid.hh: In instantiation of âDune::GeometryGrid<Dune::SGrid<2, 2, double>, DeformationFunction>â:
dune_semilagrangian.cc:74: instantiated from here
/export/local-1/daten/users/sander/dune/dune-grid/dune/grid/geometrygrid/grid.hh:280: error: incomplete type âDune::Capabilities::hasHierarchicIndexSet<Dune::SGrid<2, 2, double> >â used in nested name specifier
Is this a bug or a feature? If it is a feature, could this please be documented somewhere? I would never have guessed the magic code snippet if I hadn't found in the unit test.
A full test case is attached.
One or more files have been attached.
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=651
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