Serializer: handle Dune::FieldVector as arrays

This commit is contained in:
Arne Morten Kvarving
2023-02-01 14:38:34 +01:00
parent 7e6b28317a
commit e211a8cbf6

View File

@@ -35,6 +35,10 @@
#include <variant>
#include <vector>
#if HAVE_DUNE_COMMON
namespace Dune { template<typename,int> class FieldVector; }
#endif
namespace Opm {
namespace detail {
@@ -484,6 +488,13 @@ protected:
constexpr static bool value = true;
};
#if HAVE_DUNE_COMMON
template<class T, int N>
struct is_array<Dune::FieldVector<T,N>> {
constexpr static bool value = true;
};
#endif
//! Detect existence of \c serializeOp member function
//!
//! Base case (no \c serializeOp member function)