Skip to content
Snippets Groups Projects
Unverified Commit 7fd013df authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

P2HierarchicalBasis: work with changes in dune-localfunctions

parent 873a5a38
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
@author
*/
#include <dune/common/version.hh>
#include <dune/localfunctions/hierarchical/hierarchicalp2.hh>
#include <dune/localfunctions/hierarchical/hierarchicalprismp2.hh>
......@@ -19,13 +21,23 @@ template <class GV, class RT=double>
class P2HierarchicalBasis :
public FunctionSpaceBasis<GV, RT,
Dune::LocalFiniteElementVirtualInterface<
typename Dune::P1LocalBasis<typename GV::Grid::ctype, RT, GV::dimension>::Traits>
#if DUNE_VERSION_GTE(DUNE_LOCALFUNCTIONS, 2, 7)
typename Dune::Impl::LagrangeSimplexLocalBasis<typename GV::Grid::ctype, RT, GV::dimension, 1>::Traits
#else
typename Dune::P1LocalBasis<typename GV::Grid::ctype, RT, GV::dimension>::Traits
#endif
>
>
{
protected:
typedef typename GV::Grid::ctype ctype;
typedef typename Dune::P1LocalBasis<typename GV::Grid::ctype, RT, GV::dimension>::Traits P1Traits;
#if DUNE_VERSION_GTE(DUNE_LOCALFUNCTIONS, 2, 7)
using P1Traits = typename Dune::Impl::LagrangeSimplexLocalBasis<typename GV::Grid::ctype, RT, GV::dimension, 1>::Traits;
#else
using P1Traits = typename Dune::P1LocalBasis<typename GV::Grid::ctype, RT, GV::dimension>::Traits;
#endif
typedef Dune::LocalFiniteElementVirtualInterface<P1Traits> LFE;
typedef FunctionSpaceBasis<GV, RT, LFE> Base;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment