From e211a8cbf6e4044fa150e150acfedb4960368ab2 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 1 Feb 2023 14:38:34 +0100 Subject: [PATCH] Serializer: handle Dune::FieldVector as arrays --- opm/common/utility/Serializer.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/opm/common/utility/Serializer.hpp b/opm/common/utility/Serializer.hpp index de1d429eb..97c3d55b0 100644 --- a/opm/common/utility/Serializer.hpp +++ b/opm/common/utility/Serializer.hpp @@ -35,6 +35,10 @@ #include #include +#if HAVE_DUNE_COMMON +namespace Dune { template class FieldVector; } +#endif + namespace Opm { namespace detail { @@ -484,6 +488,13 @@ protected: constexpr static bool value = true; }; +#if HAVE_DUNE_COMMON + template + struct is_array> { + constexpr static bool value = true; + }; +#endif + //! Detect existence of \c serializeOp member function //! //! Base case (no \c serializeOp member function)