Do not force grids to subclass Entity or Geometry
- Oct 26, 2016
-
-
Markus Blatt authored
-
Markus Blatt authored
-
- Oct 25, 2016
-
-
Markus Blatt authored
This is test code and should be as generic as it can be. Previously (but not since ever) it assumed that Grid::Entity is always a subclass of Dune::Entity. This seems to hard a restriction as it is only used to check that the grid has a hasEntity<codim> capability for all its Entities (which is a bug IMHO, too). Therefore this commit makes CheckSubEntityGeometry a template struct that has the Grid as a parameter and a nested Operation struct with template parameter codim that is used in the ForLoop for testing.
-
Markus Blatt authored
This is test code and should be as generic as can be. Therefore this commit allows grids to use custom geometry classes instead of forcing them to use Dune::Geometry.
-