diff --git a/dune/gdt/playground/spaces/finitevolume/default.hh b/dune/gdt/playground/spaces/finitevolume/default.hh index 2205e4b13a6969df2826900d10561d767bc3b946..e9680103804d957e00cd28c0d039a1f2a28c3d0c 100644 --- a/dune/gdt/playground/spaces/finitevolume/default.hh +++ b/dune/gdt/playground/spaces/finitevolume/default.hh @@ -9,4 +9,22 @@ #warning This header is deprecated, include <dune/gdt/playground/spaces/fv/default.hh> instead (19.11.2014)! #include <dune/gdt/playground/spaces/fv/default.hh> +namespace FiniteVolume { + + +template <class GridViewImp, class RangeFieldImp, int rangeDim, int rangeDimCols = 1> +class DUNE_DEPRECATED_MSG("Use FV::Default instead (19.11.2014)!") Default + : public FV::Default<GridViewImp, RangeFieldImp, rangeDim, rangeDimCols> +{ +public: + template <class... Args> + Default(Args&&... args) + : FV::Default<GridViewImp, RangeFieldImp, rangeDim, rangeDimCols>(std::forward<Args>(args)...) + { + } +}; + + +} // namespace FiniteVolume + #endif // DUNE_GDT_PLAYGROUND_SPACES_FINITEVOLUME_DEFAULT_HH diff --git a/dune/gdt/playground/spaces/fv/default.hh b/dune/gdt/playground/spaces/fv/default.hh index c6ed31eadc43d5a1c51404923362d39f3d909f57..11f6c9538cf11439d880ece7dff66de5a6d3a633 100644 --- a/dune/gdt/playground/spaces/fv/default.hh +++ b/dune/gdt/playground/spaces/fv/default.hh @@ -58,34 +58,29 @@ template <class GridViewImp, class RangeFieldImp, int rangeDim> class Default<GridViewImp, RangeFieldImp, rangeDim, 1> : public SpaceInterface<DefaultTraits<GridViewImp, RangeFieldImp, rangeDim, 1>, GridViewImp::dimension, rangeDim, 1> { + typedef Default<GridViewImp, RangeFieldImp, rangeDim, 1> ThisType; typedef SpaceInterface<DefaultTraits<GridViewImp, RangeFieldImp, rangeDim, 1>, GridViewImp::dimension, rangeDim, 1> BaseType; - typedef Default<GridViewImp, RangeFieldImp, rangeDim, 1> ThisType; public: typedef DefaultTraits<GridViewImp, RangeFieldImp, rangeDim, 1> Traits; - typedef typename Traits::GridViewType GridViewType; - static const int polOrder = Traits::polOrder; - typedef typename GridViewType::ctype DomainFieldType; - static const unsigned int dimDomain = BaseType::dimDomain; - -private: - static_assert(GridViewType::dimension == dimDomain, "Dimension of GridView has to match dimDomain"); - -public: - typedef typename Traits::RangeFieldType RangeFieldType; + static const int polOrder = Traits::polOrder; + static const unsigned int dimDomain = BaseType::dimDomain; static const unsigned int dimRange = BaseType::dimRange; static const unsigned int dimRangeCols = BaseType::dimRangeCols; + typedef typename Traits::GridViewType GridViewType; + typedef typename Traits::RangeFieldType RangeFieldType; typedef typename Traits::BackendType BackendType; typedef typename Traits::MapperType MapperType; - typedef typename Traits::BaseFunctionSetType BaseFunctionSetType; typedef typename Traits::EntityType EntityType; + typedef typename Traits::BaseFunctionSetType BaseFunctionSetType; typedef typename Traits::CommunicationChooserType CommunicationChooserType; typedef typename Traits::CommunicatorType CommunicatorType; typedef Dune::Stuff::LA::SparsityPatternDefault PatternType; + typedef typename GridViewType::ctype DomainFieldType; Default(GridViewType gv) : grid_view_(gv) @@ -149,23 +144,6 @@ private: } // namespace FV -namespace FiniteVolume { - - -template <class GridViewImp, class RangeFieldImp, int rangeDim, int rangeDimCols = 1> -class DUNE_DEPRECATED_MSG("Use FV::Default instead (19.11.2014)!") Default - : public FV::Default<GridViewImp, RangeFieldImp, rangeDim, rangeDimCols> -{ -public: - template <class... Args> - Default(Args&&... args) - : FV::Default<GridViewImp, RangeFieldImp, rangeDim, rangeDimCols>(std::forward<Args>(args)...) - { - } -}; - - -} // namespace FiniteVolume } // namespace Spaces } // namespace GDT } // namespace Dune