Serializer: handle Dune::BlockVector as vectors
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user