Serializer: handle Dune::BlockVector as vectors

This commit is contained in:
Arne Morten Kvarving
2023-02-01 14:38:34 +01:00
parent 6ba29b0920
commit d04a30592a

View File

@@ -39,6 +39,10 @@
namespace Dune { template<typename,int> class FieldVector; }
#endif
#if HAVE_DUNE_ISTL
namespace Dune { template<typename,typename> class BlockVector; }
#endif
namespace Opm {
namespace detail {
@@ -391,6 +395,13 @@ protected:
constexpr static bool value = true;
};
#if HAVE_DUNE_ISTL
template<class T1, class Allocator>
struct is_vector<Dune::BlockVector<T1,Allocator>> {
constexpr static bool value = true;
};
#endif
//! \brief Predicate for detecting variants.
template<class T>
struct is_variant {