Commit 8cad99f8 authored by Lukas Riedel's avatar Lukas Riedel

adaptivity controller has to use the same FEM type to work properly #23

parent 5d92109d
......@@ -25,7 +25,7 @@ protected:
/// LSGFS Helper
using LSGFSHelper = Dune::Dorie::GridFunctionSpaceHelper<GV,RF,0,Traits::GridGeometryType>;
using LSGFSHelper = Dune::Dorie::LinearSolverGridFunctionSpaceHelper<GV,RF,Traits::GridGeometryType>;
/// Linear solver GFS
using LSGFS = typename LSGFSHelper::Type;
/// LSGFS Constraints Container
......
......@@ -31,13 +31,14 @@ R estimate_mbe_entries (const int dim, const Dune::GeometryType::BasicType geo)
return 1;
}
/// Provide types and construction of the GridFunctionSpace. Has to be specialized.
template<typename GridView, typename RF, int order, Dune::GeometryType::BasicType GeometryType>
struct GridFunctionSpaceHelper
/// Provide types and construction of the GFS for the linear solver
template<typename GridView, typename RF, Dune::GeometryType::BasicType GeometryType>
struct LinearSolverGridFunctionSpaceHelper
{};
/// Provide types and construction of the GridFunctionSpace
template<typename GridView, typename RF>
struct GridFunctionSpaceHelper<GridView,RF,0,Dune::GeometryType::BasicType::simplex>
struct LinearSolverGridFunctionSpaceHelper<GridView,RF,Dune::GeometryType::BasicType::simplex>
{
private:
static constexpr int dim = GridView::dimension;
......@@ -70,7 +71,7 @@ public:
/// Provide types and construction of the GridFunctionSpace
template<typename GridView, typename RF>
struct GridFunctionSpaceHelper<GridView,RF,0,Dune::GeometryType::BasicType::cube>
struct LinearSolverGridFunctionSpaceHelper<GridView,RF,Dune::GeometryType::BasicType::cube>
{
private:
static constexpr int dim = GridView::dimension;
......@@ -101,6 +102,11 @@ public:
}
};
/// Provide types and construction of the GridFunctionSpace. Has to be specialized.
template<typename GridView, typename RF, int order, Dune::GeometryType::BasicType GeometryType>
struct GridFunctionSpaceHelper
{};
/// Provide types and construction of the GridFunctionSpace
/* \todo add constraints specialization depending on grid
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment