Skip to content
Snippets Groups Projects
Commit 7d2e3815 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

GlobalP2Mapper: Make sure the grid view contains only quadrilaterals

The current implementation assign one degree of freedom to each
element, regardless of its type.  That only works for quad grids:
We are implementing Lagrange FE here, and these don't assign
degrees of freedom to triangles.
parent 3defd9eb
No related branches found
No related tags found
No related merge requests found
Pipeline #1454 failed
...@@ -33,6 +33,9 @@ namespace Dune { ...@@ -33,6 +33,9 @@ namespace Dune {
{ {
static_assert(GridView::dimension==2, "Only implemented for two-dimensional grids"); static_assert(GridView::dimension==2, "Only implemented for two-dimensional grids");
if (gridView.size(GeometryTypes::triangle)>1)
DUNE_THROW(NotImplemented, "GlobalP2Mapper only works for quad grids!");
GlobalIndexSet<GridView> globalVertexIndex(gridView,2); GlobalIndexSet<GridView> globalVertexIndex(gridView,2);
GlobalIndexSet<GridView> globalEdgeIndex(gridView,1); GlobalIndexSet<GridView> globalEdgeIndex(gridView,1);
GlobalIndexSet<GridView> globalElementIndex(gridView,0); GlobalIndexSet<GridView> globalElementIndex(gridView,0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment