Commit ae46dba9 authored by Tim Keil's avatar Tim Keil

add #if HAVE_DUNE_GRID_GLUE check

parent de0dfb4c
Pipeline #73898 passed with stages
in 48 minutes and 9 seconds
......@@ -90,12 +90,14 @@ struct AllDirichletBoundaryInfo_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::AllDirichletBoundaryInfo<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::AllDirichletBoundaryInfo<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::AllDirichletBoundaryInfo<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::AllDirichletBoundaryInfo<CGV>::bind_coupling_factory(m);
}
#endif
AllDirichletBoundaryInfo_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -90,12 +90,14 @@ struct AllNeumannBoundaryInfo_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::AllNeumannBoundaryInfo<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::AllNeumannBoundaryInfo<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::AllNeumannBoundaryInfo<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::AllNeumannBoundaryInfo<CGV>::bind_coupling_factory(m);
}
#endif
AllNeumannBoundaryInfo_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -90,12 +90,14 @@ struct AllReflectingBoundaryInfo_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::AllReflectingBoundaryInfo<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::AllReflectingBoundaryInfo<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::AllReflectingBoundaryInfo<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::AllReflectingBoundaryInfo<CGV>::bind_coupling_factory(m);
}
#endif
AllReflectingBoundaryInfo_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -31,11 +31,13 @@ struct BoundaryInfo_for_all_grids
{
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::BoundaryInfo<LGV>::bind(m, grid_name<G>::value(), "leaf");
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::BoundaryInfo<CGV>::bind(m, grid_name<G>::value(), "coupling");
}
#endif
BoundaryInfo_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -123,12 +123,14 @@ struct NormalBasedBoundaryInfo_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::NormalBasedBoundaryInfo<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::NormalBasedBoundaryInfo<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::NormalBasedBoundaryInfo<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::NormalBasedBoundaryInfo<CGV>::bind_coupling_factory(m);
}
#endif
NormalBasedBoundaryInfo_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -29,11 +29,13 @@ struct ElementFilter_for_all_grids
{
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::ElementFilter<LGV>::bind(m, grid_name<G>::value(), "leaf");
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::ElementFilter<CGV>::bind(m, grid_name<G>::value(), "coupling");
}
#endif
ElementFilter_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......@@ -56,11 +58,13 @@ struct IntersectionFilter_for_all_grids
{
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::IntersectionFilter<LGV>::bind(m, grid_name<G>::value(), "leaf");
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::IntersectionFilter<CGV>::bind(m, grid_name<G>::value(), "coupling");
}
#endif
IntersectionFilter_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -31,12 +31,14 @@ struct InitlessElementFilter_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::InitlessElementFilter<Filter, LGV>::bind(m, class_id, "leaf");
Dune::XT::Grid::bindings::InitlessElementFilter<Filter, LGV>::bind_leaf_factory(m, class_id);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::InitlessElementFilter<Filter, CGV>::bind(m, class_id, "coupling");
Dune::XT::Grid::bindings::InitlessElementFilter<Filter, CGV>::bind_coupling_factory(m, class_id);
}
#endif
InitlessElementFilter_for_all_grids<Filter, Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m, class_id);
}
};
......
......@@ -133,12 +133,14 @@ struct BoundaryDetectorFunctor_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::BoundaryDetectorFunctor<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::BoundaryDetectorFunctor<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::BoundaryDetectorFunctor<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::BoundaryDetectorFunctor<CGV>::bind_coupling_factory(m);
}
#endif
BoundaryDetectorFunctor_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -89,12 +89,14 @@ struct MinMaxCoordinateFunctor_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::MinMaxCoordinateFunctor<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::MinMaxCoordinateFunctor<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::MinMaxCoordinateFunctor<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::MinMaxCoordinateFunctor<CGV>::bind_coupling_factory(m);
}
#endif
MinMaxCoordinateFunctor_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -30,11 +30,13 @@ struct ElementFunctor_for_all_grids
{
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::ElementFunctor<LGV>::bind(m, grid_name<G>::value(), "leaf");
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::ElementFunctor<CGV>::bind(m, grid_name<G>::value(), "coupling");
}
#endif
ElementFunctor_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -119,12 +119,14 @@ struct MaximumEntityVolumeRefineFunctor_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::MaximumEntityVolumeRefineFunctor<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::MaximumEntityVolumeRefineFunctor<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::MaximumEntityVolumeRefineFunctor<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::MaximumEntityVolumeRefineFunctor<CGV>::bind_coupling_factory(m);
}
#endif
MaximumEntityVolumeRefineFunctor_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -61,12 +61,14 @@ struct CustomBoundaryIntersectionFilter_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::CustomBoundaryIntersectionsFilter<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::CustomBoundaryIntersectionsFilter<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::CustomBoundaryIntersectionsFilter<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::CustomBoundaryIntersectionsFilter<CGV>::bind_coupling_factory(m);
}
#endif
CustomBoundaryIntersectionFilter_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -124,11 +124,13 @@ struct Intersection_for_all_grids
{
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::Intersection<LGV>::bind(m, grid_name<G>::value(), "leaf");
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::Intersection<CGV>::bind(m, grid_name<G>::value(), "coupling");
}
#endif
Intersection_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
......@@ -32,12 +32,14 @@ struct Walker_for_all_grids
using Dune::XT::Grid::bindings::grid_name;
Dune::XT::Grid::bindings::Walker<LGV>::bind(m, grid_name<G>::value(), "leaf");
Dune::XT::Grid::bindings::Walker<LGV>::bind_leaf_factory(m);
#if HAVE_DUNE_GRID_GLUE
if constexpr (d == 2) {
using GridGlueType = Dune::XT::Grid::DD::Glued<G, G, Dune::XT::Grid::Layers::leaf>;
using CGV = Dune::XT::Grid::CouplingGridView<GridGlueType>;
Dune::XT::Grid::bindings::Walker<CGV>::bind(m, grid_name<G>::value(), "coupling");
Dune::XT::Grid::bindings::Walker<CGV>::bind_coupling_factory(m);
}
#endif
Walker_for_all_grids<Dune::XT::Common::tuple_tail_t<GridTypes>>::bind(m);
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment