UGGrid factory broken inserctionIndex method
If you try to extract the insertion index of an intersection from a UG factory
for(const auto entity:elements(leafGridView))
for(const auto intersection:intersections(leafGridView,entity))
if(intersection.boundary())
std::cout<<gridFactory.insertionIndex(intersection)<<std::endl;
it fails. More precisely
no known conversion for argument 1 from ‘const Dune::Intersection<const Dune::UGGrid<2>, Dune::UGGridLeafIntersection<const Dune::UGGrid<2> > >’ to ‘const Entity& {aka const Dune::Entity<0, 2, const Dune::UGGrid<2>, Dune::UGGridEntity>&}’
So the type returned by intersections is not compatible with the type requested by inserctionIndex. If you change grid manager (Alberta, OneD, ...) it works flawlessly.
To reproduce the bug, see last comment here