mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
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:
1 parent
1bb13fa350
commit
9aa0efa2f8
1 file changed
+5
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user