Function Dune::XT::Grid::make_mixed_grid¶
Function template Dune::XT::Grid::make_mixed_grid¶
-
template<class G>
GridProvider<G> Dune::XT::Grid::make_mixed_grid(const unsigned int num_refinements = 0)¶ A grid with mixed cube/simplex elements (2d or 3d), built via the GridFactory.
Only grid managers that can hold more than one geometry type (i.e. UGGrid) can be instantiated with this; the factory body is therefore only ever compiled for such grids. This is the single source of truth for the mixed-element mesh used both by the C++ space tests (dune/gdt/test/spaces/base.hh) and by the python make_mixed_grid binding.