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

Use LagrangeBasis instead of PQkNodalBasis

The latter is deprecated in dune-functions 2.6.
parent 3f543761
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
#include <dune/istl/io.hh>
#include <dune/functions/functionspacebases/pqknodalbasis.hh>
#include <dune/functions/functionspacebases/lagrangebasis.hh>
#include <dune/fufem/functionspacebases/p1nodalbasis.hh>
#include <dune/fufem/assemblers/operatorassembler.hh>
......@@ -151,7 +151,7 @@ setup(const typename BasisType::GridView::Grid& grid,
////////////////////////////////////////////////////////////////////////
typedef BasisType Basis;
bool isP1Basis = std::is_same<Basis,DuneFunctionsBasis<Dune::Functions::PQkNodalBasis<typename Basis::GridView, 1> > >::value;
bool isP1Basis = std::is_same<Basis,DuneFunctionsBasis<Dune::Functions::LagrangeBasis<typename Basis::GridView, 1> > >::value;
using TransferOperatorType = typename TruncatedCompressedMGTransfer<CorrectionType>::TransferOperatorType;
......
......@@ -18,7 +18,6 @@
#include <dune/grid/io/file/gmshreader.hh>
#include <dune/grid/io/file/vtk.hh>
#include <dune/functions/functionspacebases/pqknodalbasis.hh>
#include <dune/functions/functionspacebases/interpolate.hh>
#include <dune/functions/functionspacebases/lagrangebasis.hh>
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
......@@ -144,7 +143,7 @@ int main (int argc, char *argv[]) try
GridView gridView = grid->leafGridView();
// FE basis spanning the FE space that we are working in
typedef Dune::Functions::PQkNodalBasis<GridView, 2> FEBasis;
typedef Dune::Functions::LagrangeBasis<GridView, order> FEBasis;
FEBasis feBasis(gridView);
// dune-fufem-style FE basis for the transition from dune-fufem to dune-functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment