From e0de90e8ccb4ba07cefc55c16d64bea4621eb9a0 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 8 Dec 2017 10:48:07 +0100
Subject: [PATCH] [fvassembly] Forward numDofs to gridgeometry. Fixes #408.

---
 dumux/assembly/fvassembler.hh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dumux/assembly/fvassembler.hh b/dumux/assembly/fvassembler.hh
index 885bb40e35..171b92eb03 100644
--- a/dumux/assembly/fvassembler.hh
+++ b/dumux/assembly/fvassembler.hh
@@ -60,8 +60,6 @@ class FVAssembler
 
     static constexpr int dim = GridView::dimension;
     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>,
                                                      CCLocalAssembler<TypeTag, diffMethod, isImplicit>>;
 
@@ -323,7 +321,7 @@ public:
 
     //! cell-centered schemes have one dof per cell
     std::size_t numDofs() const
-    { return gridView().size(dofCodim); }
+    { return fvGridGeometry_->numDofs(); }
 
     const Problem& problem() const
     { return *problem_; }
-- 
GitLab