Skip to content
Snippets Groups Projects
Commit 6d607a52 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[spaces.cg.fem] remove definitions of dims from Traits, refs #14

parent c1d701fe
No related branches found
No related tags found
No related merge requests found
......@@ -50,25 +50,23 @@ public:
typedef typename GridPartType::GridViewType GridViewType;
static const int polOrder = polynomialOrder;
static_assert(polOrder >= 1, "Wrong polOrder given!");
static const unsigned int dimDomain = GridPartType::dimension;
private:
typedef typename GridPartType::ctype DomainFieldType;
static const unsigned int dimDomain = GridPartType::dimension;
public:
typedef RangeFieldImp RangeFieldType;
static const unsigned int dimRange = rangeDim;
static const unsigned int dimRangeCols = rangeDimCols;
private:
typedef Dune::Fem::FunctionSpace<DomainFieldType, RangeFieldType, dimDomain, dimRange> FunctionSpaceType;
typedef Dune::Fem::FunctionSpace<DomainFieldType, RangeFieldType, dimDomain, rangeDim> FunctionSpaceType;
public:
typedef Dune::Fem::LagrangeDiscreteFunctionSpace<FunctionSpaceType, GridPartType, polOrder> BackendType;
typedef Mapper::FemDofWrapper<typename BackendType::BlockMapperType, 1> MapperType;
typedef typename GridPartType::template Codim<0>::EntityType EntityType;
typedef BaseFunctionSet::FemWrapper<typename BackendType::ShapeFunctionSetType, EntityType, DomainFieldType,
dimDomain, RangeFieldType, dimRange, dimRangeCols> BaseFunctionSetType;
dimDomain, RangeFieldType, rangeDim, rangeDimCols> BaseFunctionSetType;
static const Stuff::Grid::ChoosePartView part_view_type = Stuff::Grid::ChoosePartView::part;
static const bool needs_grid_view = false;
typedef CommunicationChooser<GridViewType, false> CommunicationChooserType;
......@@ -93,10 +91,15 @@ public:
typedef typename Traits::GridViewType GridViewType;
static const int polOrder = Traits::polOrder;
typedef typename GridPartType::ctype DomainFieldType;
static const unsigned int dimDomain = GridPartType::dimension;
static const unsigned int dimDomain = BaseType::dimDomain;
private:
static_assert(GridPartType::dimension == dimDomain, "Dimension of GridPart has to match dimDomain");
public:
typedef typename Traits::RangeFieldType RangeFieldType;
static const unsigned int dimRange = Traits::dimRange;
static const unsigned int dimRangeCols = Traits::dimRangeCols;
static const unsigned int dimRange = BaseType::dimRange;
static const unsigned int dimRangeCols = BaseType::dimRangeCols;
typedef typename Traits::BackendType BackendType;
typedef typename Traits::MapperType MapperType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment