Skip to content
Snippets Groups Projects

Feature/more fixes

Merged Steffen Müthing requested to merge feature/more-fixes into master
4 files
+ 17
17
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -5,18 +5,15 @@ typedef Dune::SomeGrid::LeafGridView GridView;
...
/* create a mapper*/
// Layout description (equivalent to Dune::MCMGElementLayout)
template<int dim>
struct CellData {
bool contains (Dune::GeometryType gt) {
return gt.dim() == dim;
}
};
// Layout description
Dune::MCMGLayout layout = [](Dune::GeometryType gt, int griddim) {
return gt.dim() == griddim;
};
// mapper for elements (codim=0) on leaf
using Mapper =
Dune::MultipleCodimMultipleGeomTypeMapper<GridView,CellData>;
Mapper mapper(gridview);
Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
Mapper mapper(gridview,layout);
/* setup sparsity pattern */
// iterate over the leaf
Loading