26#ifndef DUMUX_DISCRETIZATION_FUNCTION_SPACE_BASIS_HH
27#define DUMUX_DISCRETIZATION_FUNCTION_SPACE_BASIS_HH
29#if HAVE_DUNE_FUNCTIONS
32#include <dune/functions/functionspacebases/lagrangebasis.hh>
43template<
class GridGeometry,
45struct FunctionSpaceBasisTraits;
52template<
class Gr
idGeometry, std::enable_if_t<Gr
idGeometry::discMethod != DiscretizationMethod::fem,
int> = 0>
53typename FunctionSpaceBasisTraits<GridGeometry>::GlobalBasis
54getFunctionSpaceBasis(
const GridGeometry& gridGeometry)
55{
return {gridGeometry.gridView()}; }
61template<
class Gr
idGeometry, std::enable_if_t<Gr
idGeometry::discMethod == DiscretizationMethod::fem,
int> = 0>
62const typename FunctionSpaceBasisTraits<GridGeometry>::GlobalBasis&
63getFunctionSpaceBasis(
const GridGeometry& gridGeometry)
64{
return gridGeometry.feBasis(); }
72template<
class Gr
idGeometry >
74{
using GlobalBasis = Dune::Functions::LagrangeBasis<
typename GridGeometry::GridView, 1>; };
77template<
class Gr
idGeometry >
79{
using GlobalBasis = Dune::Functions::LagrangeBasis<
typename GridGeometry::GridView, 0>; };
82template<
class Gr
idGeometry >
84{
using GlobalBasis = Dune::Functions::LagrangeBasis<
typename GridGeometry::GridView, 0>; };
87template<
class Gr
idGeometry >
89{
using GlobalBasis =
typename GridGeometry::FEBasis; };
The available discretization methods in Dumux.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37