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

[spaces.dg.fem] move deprecated class, remove assert. refs #14

parent c7ab5de6
No related branches found
No related tags found
No related merge requests found
...@@ -88,20 +88,14 @@ class FemBased<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1> ...@@ -88,20 +88,14 @@ class FemBased<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1>
public: public:
typedef FemBasedTraits<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1> Traits; typedef FemBasedTraits<GridPartImp, polynomialOrder, RangeFieldImp, 1, 1> Traits;
typedef typename Traits::GridPartType GridPartType; static const int polOrder = Traits::polOrder;
typedef typename Traits::GridViewType GridViewType; static const unsigned int dimDomain = BaseType::dimDomain;
static const int polOrder = Traits::polOrder;
typedef typename GridPartType::ctype DomainFieldType;
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 = BaseType::dimRange; static const unsigned int dimRange = BaseType::dimRange;
static const unsigned int dimRangeCols = BaseType::dimRangeCols; static const unsigned int dimRangeCols = BaseType::dimRangeCols;
typedef typename Traits::GridPartType GridPartType;
typedef typename Traits::GridViewType GridViewType;
typedef typename Traits::RangeFieldType RangeFieldType;
typedef typename Traits::BackendType BackendType; typedef typename Traits::BackendType BackendType;
typedef typename Traits::MapperType MapperType; typedef typename Traits::MapperType MapperType;
typedef typename Traits::BaseFunctionSetType BaseFunctionSetType; typedef typename Traits::BaseFunctionSetType BaseFunctionSetType;
...@@ -110,6 +104,7 @@ public: ...@@ -110,6 +104,7 @@ public:
typedef typename Traits::CommunicatorType CommunicatorType; typedef typename Traits::CommunicatorType CommunicatorType;
typedef Dune::Stuff::LA::SparsityPatternDefault PatternType; typedef Dune::Stuff::LA::SparsityPatternDefault PatternType;
typedef typename GridPartType::ctype DomainFieldType;
FemBased(GridPartType gridP) FemBased(GridPartType gridP)
: gridPart_(new GridPartType(gridP)) : gridPart_(new GridPartType(gridP))
...@@ -190,23 +185,6 @@ class FemBased ...@@ -190,23 +185,6 @@ class FemBased
} // namespace DG } // namespace DG
namespace DiscontinuousLagrange {
template <class GridPartImp, int polynomialOrder, class RangeFieldImp, int rangeDim, int rangeDimCols = 1>
class DUNE_DEPRECATED_MSG("Use DG::FemBased instead (21.11.2014)!") FemBased
: public DG::FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols>
{
public:
template <class... Args>
FemBased(Args&&... args)
: DG::FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols>(std::forward<Args>(args)...)
{
}
};
} // namespace DiscontinuousLagrange
} // namespace Spaces } // namespace Spaces
} // namespace GDT } // namespace GDT
} // namespace Dune } // namespace Dune
......
...@@ -9,4 +9,22 @@ ...@@ -9,4 +9,22 @@
#warning This header is deprecated, include <dune/gdt/playground/spaces/dg/fem.hh> instead (21.11.2014)! #warning This header is deprecated, include <dune/gdt/playground/spaces/dg/fem.hh> instead (21.11.2014)!
#include <dune/gdt/playground/spaces/dg/fem.hh> #include <dune/gdt/playground/spaces/dg/fem.hh>
namespace DiscontinuousLagrange {
template <class GridPartImp, int polynomialOrder, class RangeFieldImp, int rangeDim, int rangeDimCols = 1>
class DUNE_DEPRECATED_MSG("Use DG::FemBased instead (21.11.2014)!") FemBased
: public DG::FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols>
{
public:
template <class... Args>
FemBased(Args&&... args)
: DG::FemBased<GridPartImp, polynomialOrder, RangeFieldImp, rangeDim, rangeDimCols>(std::forward<Args>(args)...)
{
}
};
} // namespace DiscontinuousLagrange
#endif // DUNE_GDT_PLAYGROUND_SPACES_DISCONTINUOUSLAGRANGE_FEM_HH #endif // DUNE_GDT_PLAYGROUND_SPACES_DISCONTINUOUSLAGRANGE_FEM_HH
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