diff --git a/dune/gfe/cosseratvtkwriter.hh b/dune/gfe/cosseratvtkwriter.hh index ba6525a4e268664fa7b9a6b47f10e2229fdf52d4..e11c03ef5adcdde74e977ed72d9112363359f5fa 100644 --- a/dune/gfe/cosseratvtkwriter.hh +++ b/dune/gfe/cosseratvtkwriter.hh @@ -5,8 +5,9 @@ #include <dune/grid/io/file/vtk/vtkwriter.hh> #include <dune/grid/io/file/vtk/pvtuwriter.hh> -#include <dune/fufem/functionspacebases/p1nodalbasis.hh> -#include <dune/fufem/functionspacebases/p2nodalbasis.hh> +#include <dune/functions/functionspacebases/pqknodalbasis.hh> + +#include <dune/fufem/functionspacebases/dunefunctionsbasis.hh> #include <dune/fufem/functions/vtkbasisgridfunction.hh> #include <dune/fufem/functiontools/basisinterpolator.hh> #include <dune/gfe/rigidbodymotion.hh> @@ -350,7 +351,7 @@ public: std::vector<RealTuple<double,3> > displacementConfiguration = deformationConfiguration; typedef typename GridType::LeafGridView GridView; - typedef P2NodalBasis<GridView,double> P2DeformationBasis; + typedef DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<GridView,2> > P2DeformationBasis; P2DeformationBasis p2DeformationBasis(displacementBasis.getGridView()); if (order == 3) diff --git a/dune/gfe/riemanniantrsolver.cc b/dune/gfe/riemanniantrsolver.cc index 835d3039a5605ee9b585a17940c15674869b06ca..acc138f7b6f98e81afe77b921c6a2d456bc147a9 100644 --- a/dune/gfe/riemanniantrsolver.cc +++ b/dune/gfe/riemanniantrsolver.cc @@ -5,7 +5,7 @@ #include <dune/grid/common/mcmgmapper.hh> -#include <dune/fufem/functionspacebases/p1nodalbasis.hh> +#include <dune/functions/functionspacebases/pq1nodalbasis.hh> #include <dune/fufem/functionspacebases/dunefunctionsbasis.hh> #include <dune/fufem/assemblers/operatorassembler.hh> #include <dune/fufem/assemblers/localassemblers/laplaceassembler.hh> @@ -201,7 +201,7 @@ setup(const GridType& grid, // On the lower grid levels a hierarchy of P1/Q1 spaces is used again. //////////////////////////////////////////////////////////////////////// - bool isP1Basis = std::is_same<Basis,P1NodalBasis<typename Basis::GridView> >::value; + bool isP1Basis = std::is_same<Basis,DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<typename Basis::GridView,1> > >::value; if (isP1Basis) mmgStep->mgTransfer_.resize(numLevels-1); @@ -212,11 +212,11 @@ setup(const GridType& grid, if (not isP1Basis) { typedef typename TruncatedCompressedMGTransfer<CorrectionType>::TransferOperatorType TransferOperatorType; - P1NodalBasis<typename GridType::LeafGridView,double> p1Basis(grid_->leafGridView()); + DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<typename GridType::LeafGridView,1> > p1Basis(grid_->leafGridView()); TransferOperatorType pkToP1TransferMatrix; assembleBasisInterpolationMatrix<TransferOperatorType, - P1NodalBasis<typename GridType::LeafGridView,double>, + DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<typename GridType::LeafGridView,1> >, FufemBasis>(pkToP1TransferMatrix,p1Basis,basis); #if HAVE_MPI // If we are on more than 1 processors, join all local transfer matrices on rank 0, diff --git a/dune/gfe/riemanniantrsolver.hh b/dune/gfe/riemanniantrsolver.hh index 1f2b3aea11b58ab86fea772c4d78aa58f8934afe..fdcc26c5de0a7e1b0746e31cadc2fb66e747f9e7 100644 --- a/dune/gfe/riemanniantrsolver.hh +++ b/dune/gfe/riemanniantrsolver.hh @@ -13,10 +13,6 @@ #include <dune/solvers/solvers/iterativesolver.hh> #include <dune/solvers/solvers/loopsolver.hh> -#include <dune/fufem/functionspacebases/p1nodalbasis.hh> -#include <dune/fufem/functionspacebases/p2nodalbasis.hh> -#include <dune/fufem/functionspacebases/p3nodalbasis.hh> - #include "geodesicfeassembler.hh" #include <dune/grid/utility/globalindexset.hh> #include <dune/gfe/parallel/globalp1mapper.hh> @@ -27,25 +23,25 @@ template <typename Basis> struct MapperFactory {}; -/** \brief Specialization for P1NodalBasis */ -template <typename GridView, typename field_type> -struct MapperFactory<P1NodalBasis<GridView,field_type> > +/** \brief Specialization for PQ1NodalBasis */ +template <typename GridView> +struct MapperFactory<DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<GridView,1> > > { typedef Dune::GlobalP1Mapper<GridView> GlobalMapper; typedef Dune::MultipleCodimMultipleGeomTypeMapper<GridView, Dune::MCMGVertexLayout> LocalMapper; }; -/** \brief Specialization for P2NodalBasis */ -template <typename GridView, typename field_type> -struct MapperFactory<P2NodalBasis<GridView,field_type> > +/** \brief Specialization for PQ2NodalBasis */ +template <typename GridView> +struct MapperFactory<DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<GridView,2> > > { typedef Dune::GlobalP2Mapper<GridView> GlobalMapper; typedef P2BasisMapper<GridView> LocalMapper; }; -/** \brief Specialization for P3NodalBasis */ -template <typename GridView, typename field_type> -struct MapperFactory<P3NodalBasis<GridView,field_type> > +/** \brief Specialization for PQ3NodalBasis */ +template <typename GridView> +struct MapperFactory<DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<GridView,3> > > { // Error: we don't currently have a global P3 mapper };