#1515 Alberta broken due to LevelIndexSet and LeveIndexSet issue
Metadata
Property | Value |
---|---|
Reported by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Reported at | Oct 17, 2014 08:21 |
Type | Bug Report |
Version | 2.3 |
Operating System | Unspecified / All |
Last edited by | Carsten Gräser (graeser@math.fu-berlin.de) |
Last edited at | Sep 25, 2015 14:36 |
Description
All programs with Alberta are broken for me with GCC 4.9 and Clang 3.5.
test-alberta.cc:123:19: required from here
../../../dune/grid/albertagrid/albertagrid.cc:528:37: error: invalid initialization of reference of type ‘const LevelIndexSet& {aka const Dune::IndexSet<Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridIndexSet<2, 2>, int, std::vector<Dune::GeometryType> >&}’ from expression of type ‘Dune::AlbertaGridIndexSet<2, 2>’
return *(levelIndexVec_[ level ]);
^
../../../dune/grid/albertagrid/albertagrid.cc: In instantiation of ‘const typename Dune::AlbertaGridFamily<dim, dimworld>::Traits::LeafIndexSet& Dune::AlbertaGrid<dim, dimworld>::leafIndexSet() const [with int dim = 2; int dimworld = 2; typename Dune::AlbertaGridFamily<dim, dimworld>::Traits::LeafIndexSet = Dune::IndexSet<Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridIndexSet<2, 2>, int, std::vector<Dune::GeometryType> >]’:
gridcheck.cc:151:68: required from ‘void zeroEntityConsistency(Grid&) [with Grid = Dune::AlbertaGrid<2, 2>]’
gridcheck.cc:900:26: required from ‘void gridcheck(Grid&) [with Grid = Dune::AlbertaGrid<2, 2>]’
test-alberta.cc:123:19: required from here
../../../dune/grid/albertagrid/albertagrid.cc:540:13: error: invalid initialization of reference of type ‘const LeafIndexSet& {aka const Dune::IndexSet<Dune::AlbertaGrid<2, 2>, Dune::AlbertaGridIndexSet<2, 2>, int, std::vector<Dune::GeometryType> >&}’ from expression of type ‘Dune::AlbertaGridFamily<2, 2>::LeafIndexSetImp {aka Dune::AlbertaGridIndexSet<2, 2>}’
return *leafIndexSet_;
^