assertion fails for chunked, nonfixedsize PowerGridFunctionSpace
I encountered a failed assertion when using the 2.4 release branch. A small test-program can be found in andreas.nuessing/dune-pdelab@1a04584d
On a 2d 2x2 grid, I create a power GFS with two leaf GFSs, each with a wrapper around a first order QkDG basis. The wrappers in the two leaf GFS set the size of the local finite element to zero, if the element index is not divisable by 2 or 3 respectively. The container is blocked by the number of local DOFs of the QkDG basis using the Chunked
ordering tag.
The program compiles fine, but fails with a failed assertion in partitionviewentityset.hh:729
: assert(contains(gt))
(see below).
The problem seems to be related to "_active_geometry_types" not being setup correctly for the second entity set (it is zero on the failing element), but i did not completely understand the mechanics behind it and was not able to dig any further.
testpowergridfunctionspace-chunked-nonfixedsize: /home/andreas/Sources/Dune/master/dune-pdelab/dune/pdelab/common/partitionviewentityset.hh:729: typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::Index Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::subIndex(const E&, typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::size_type, typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::dim_type) const [with E = Dune::Entity<0, 2, const Dune::YaspGrid<2>, Dune::YaspEntity>; GV = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >; typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::Index = unsigned int; typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::size_type = long unsigned int; typename Dune::PDELab::PartitionViewEntitySetIndexSet<GV, Dune::PartitionSet<31u> >::Base::dim_type = int]: Assertion `contains(gt)' failed.