Commit 9ba8a6df authored by Lukas Riedel's avatar Lukas Riedel 📝

using EntitySet for GFS initialization

parent 9e5ac1b2
...@@ -84,7 +84,7 @@ public: ...@@ -84,7 +84,7 @@ public:
/// Constraints type of the GFS /// Constraints type of the GFS
using CON = Dune::PDELab::P0ParallelConstraints; using CON = Dune::PDELab::P0ParallelConstraints;
/// GFS type /// GFS type
using Type = typename Dune::PDELab::GridFunctionSpace<GridView,FEM,CON, using Type = typename Dune::PDELab::GridFunctionSpace<ES,FEM,CON,
Dune::PDELab::istl::VectorBackend<Dune::PDELab::istl::Blocking::fixed> >; Dune::PDELab::istl::VectorBackend<Dune::PDELab::istl::Blocking::fixed> >;
/// GFS Constraints Container type /// GFS Constraints Container type
using CC = typename Type::template ConstraintsContainer<RF>::Type; using CC = typename Type::template ConstraintsContainer<RF>::Type;
...@@ -92,12 +92,12 @@ public: ...@@ -92,12 +92,12 @@ public:
/// create GFS from GridView /// create GFS from GridView
static Type create (const GridView& gv) static Type create (const GridView& gv)
{ {
//ES es(gv); ES es(gv);
Dune::GeometryType geo; Dune::GeometryType geo;
geo.makeCube(dim); geo.makeCube(dim);
auto fem = std::make_shared<FEM>(geo); auto fem = std::make_shared<FEM>(geo);
auto con = std::make_shared<CON>(); auto con = std::make_shared<CON>();
return Type(gv,fem,con); return Type(es,fem,con);
} }
}; };
......
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