Skip to content
Snippets Groups Projects
Commit e0de90e8 authored by Timo Koch's avatar Timo Koch
Browse files

[fvassembly] Forward numDofs to gridgeometry. Fixes #408.

parent 848dfd5c
No related branches found
No related tags found
1 merge request!617[WIP] Next
...@@ -60,8 +60,6 @@ class FVAssembler ...@@ -60,8 +60,6 @@ class FVAssembler
static constexpr int dim = GridView::dimension; static constexpr int dim = GridView::dimension;
static constexpr bool isBox = GET_PROP_VALUE(TypeTag, DiscretizationMethod) == DiscretizationMethods::Box; static constexpr bool isBox = GET_PROP_VALUE(TypeTag, DiscretizationMethod) == DiscretizationMethods::Box;
static constexpr int dofCodim = isBox ? dim : 0;
using LocalAssembler = std::conditional_t<isBox, BoxLocalAssembler<TypeTag, diffMethod, isImplicit>, using LocalAssembler = std::conditional_t<isBox, BoxLocalAssembler<TypeTag, diffMethod, isImplicit>,
CCLocalAssembler<TypeTag, diffMethod, isImplicit>>; CCLocalAssembler<TypeTag, diffMethod, isImplicit>>;
...@@ -323,7 +321,7 @@ public: ...@@ -323,7 +321,7 @@ public:
//! cell-centered schemes have one dof per cell //! cell-centered schemes have one dof per cell
std::size_t numDofs() const std::size_t numDofs() const
{ return gridView().size(dofCodim); } { return fvGridGeometry_->numDofs(); }
const Problem& problem() const const Problem& problem() const
{ return *problem_; } { return *problem_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment