From adad6c9499f1fd55efc4dad9268da9516fe186d3 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 9 Apr 2021 12:33:23 +0000
Subject: [PATCH] [variablesbackend] Generalize vector dofbackend

---
 dumux/common/variablesbackend.hh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/dumux/common/variablesbackend.hh b/dumux/common/variablesbackend.hh
index 58a3474b35..f9e1d77d78 100644
--- a/dumux/common/variablesbackend.hh
+++ b/dumux/common/variablesbackend.hh
@@ -80,13 +80,17 @@ public:
 /*!
  * \ingroup Common
  * \brief Specialization providing operations for block vectors
+ * \tparam Vector a type that is
+ *   - default-constructible
+ *   - has size() member
+ *   - has resize(0) member
+ *   - has axpy(a, x) member 
  */
-template<class BT>
-class DofBackend<Dune::BlockVector<BT>, false>
+template<class Vector>
+class DofBackend<Vector, false>
 {
-
 public:
-    using DofVector = Dune::BlockVector<BT>; //!< the type of the dofs parametrizing the variables object
+    using DofVector = Vector; //!< the type of the dofs parametrizing the variables object
     using SizeType = std::size_t;
 
     //! Return the number of entries in the dof vector
-- 
GitLab