Skip to content
Snippets Groups Projects
Commit 18287c04 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Minor cleanup

parent d419e99b
Branches
No related tags found
No related merge requests found
...@@ -148,17 +148,12 @@ class RaviartThomasNode; ...@@ -148,17 +148,12 @@ class RaviartThomasNode;
template<typename GV, int k, class MI, class TP, class ST, GeometryType::BasicType basic_type> template<typename GV, int k, class MI, class TP, class ST, GeometryType::BasicType basic_type>
class RaviartThomasNodeIndexSet; class RaviartThomasNodeIndexSet;
template<typename GV, int k, class MI, class ST, GeometryType::BasicType basic_type>
class RaviartThomasPreBasis;
template<typename GV, int k, class MI, class ST, GeometryType::BasicType basic_type> template<typename GV, int k, class MI, class ST, GeometryType::BasicType basic_type>
class RaviartThomasPreBasis class RaviartThomasPreBasis
{ {
static const int dim = GV::dimension; static const int dim = GV::dimension;
using FiniteElementMap = typename Impl::RaviartThomasLocalFiniteElementMap<GV, dim, basic_type, typename GV::ctype, double, k>; using FiniteElementMap = typename Impl::RaviartThomasLocalFiniteElementMap<GV, dim, basic_type, typename GV::ctype, double, k>;
private:
template<typename, int, class, class, class, GeometryType::BasicType> template<typename, int, class, class, class, GeometryType::BasicType>
friend class RaviartThomasNodeIndexSet; friend class RaviartThomasNodeIndexSet;
...@@ -267,7 +262,6 @@ class RaviartThomasNode : ...@@ -267,7 +262,6 @@ class RaviartThomasNode :
public LeafBasisNode<ST, TP> public LeafBasisNode<ST, TP>
{ {
static const int dim = GV::dimension; static const int dim = GV::dimension;
static const int maxSize = StaticPower<(k+1),GV::dimension>::power;
using Base = LeafBasisNode<ST,TP>; using Base = LeafBasisNode<ST,TP>;
...@@ -383,7 +377,8 @@ public: ...@@ -383,7 +377,8 @@ public:
size_t subentity = localKey.subEntity(); size_t subentity = localKey.subEntity();
size_t codim = localKey.codim(); size_t codim = localKey.codim();
if (not(codim==0 or codim==1)) DUNE_THROW(Dune::NotImplemented, "Grid contains elements not supported for the RaviartThomasBasis"); if (not(codim==0 or codim==1))
DUNE_THROW(Dune::NotImplemented, "Grid contains elements not supported for the RaviartThomasBasis");
*it = { preBasis_->codimOffset_[codim] + *it = { preBasis_->codimOffset_[codim] +
preBasis_->dofsPerCodim[codim] * gridIndexSet.subIndex(element, subentity, codim) + localKey.index() }; preBasis_->dofsPerCodim[codim] * gridIndexSet.subIndex(element, subentity, codim) + localKey.index() };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment