Add FieldTraits specialization for MatrixBlock

This allows MatrixBlock to be used in generic contexts where Dune requires FieldTraits. This will be required for future DUNE releases. See https://gitlab.dune-project.org/core/dune-istl/-/commit/aaaec6db345df32363f4528cf776e30de206fc90.
This commit is contained in:
Santiago Ospina De Los Ríos committed 2026-03-26 10:33:11 +01:00
1 parent 1bb13fa350
commit 9aa0efa2f8
1 file changed
+5
+5
View File
@@ -316,6 +316,11 @@ struct IsNumber<Opm::MatrixBlock<T, n, m>>
: public IsNumber<Dune::FieldMatrix<T,n,m>>
{};
template<typename T, int n, int m>
struct FieldTraits<Opm::MatrixBlock<T, n, m>>
: public FieldTraits<Dune::FieldMatrix<T,n,m>>
{};
} // end namespace Dune