Skip to content
Snippets Groups Projects

Do not force grids to subclass Entity or Geometry

Merged Markus Blatt requested to merge do-not-force-grids-to-subclass-master into master
  1. Oct 26, 2016
  2. Oct 25, 2016
    • Markus Blatt's avatar
      Do not force grid to use Dune::Entity. · 62bd4650
      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.
      62bd4650
    • Markus Blatt's avatar
      Do not force grids to use Dune::Geometry. · b7354525
      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.
      b7354525
Loading