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

Really do check that the grid is 1d

parent 24676612
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,9 @@ class RodAssembler<Basis,3> : public GeodesicFEAssembler<Basis, RigidBodyMotion<
{
typedef typename Basis::GridView GridView;
//! Dimension of the grid. This needs to be one!
enum { gridDim = GridView::dimension };
//! Dimension of the grid.
enum { gridDim = GridView::dimension };
static_assert(gridDim==1, "RodAssembler can only be used with one-dimensional grids!");
enum { elementOrder = 1};
......@@ -95,8 +96,9 @@ class RodAssembler<Basis,2> : public GeodesicFEAssembler<Basis, RigidBodyMotion<
typedef typename Basis::GridView GridView;
typedef typename GridView::template Codim<0>::Entity EntityType;
//! Dimension of the grid. This needs to be one!
enum { gridDim = GridView::dimension };
//! Dimension of the grid.
enum { gridDim = GridView::dimension };
static_assert(gridDim==1, "RodAssembler can only be used with one-dimensional grids!");
enum { elementOrder = 1};
......
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