From 00294cf125642f450c8eda251f85e0bcf64495ac Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Fri, 12 Apr 2024 10:14:48 +0200 Subject: [PATCH] Add a specialization of FieldTraits for VariableBlockVector --- dune/istl/vbvector.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dune/istl/vbvector.hh b/dune/istl/vbvector.hh index c5e74732a..681df8c85 100644 --- a/dune/istl/vbvector.hh +++ b/dune/istl/vbvector.hh @@ -11,6 +11,7 @@ #include <iterator> #include <memory> +#include <dune/common/ftraits.hh> #include <dune/common/iteratorfacades.hh> #include "istlexception.hh" #include "bvector.hh" @@ -774,6 +775,18 @@ namespace Dune { typename std::allocator_traits<A>::template rebind_alloc<window_type> windowAllocator_; }; + /** @addtogroup DenseMatVec + @{ + */ + template<class B, class A> + struct FieldTraits< VariableBlockVector<B, A> > + { + typedef typename FieldTraits<B>::field_type field_type; + typedef typename FieldTraits<B>::real_type real_type; + }; + /** + @} + */ /** @} end documentation */ -- GitLab