Skip to content
Snippets Groups Projects
Commit fe3dccab authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[bugfix] Add missing specialization FieldTraits<MultiTypeBlockMatrix>

Notice that this also fixes an incorrect `MultiTypeBlockMatrix::field_type`
in a special setting: If you have a nested matrix
`MultiTypeBlockMatrix< MultiTypeBlockVector<MultiTypeBlockMatrix<...>>>`,
the outer `MultiTypeBlockMatrix::field_type` forwards to the `MultiTypeBlockVector::field_type`
which forwards to the inner `FieldTraits<MultiTypeBlockMatrix>::field_type`.
parent fc25dbfb
No related branches found
No related tags found
1 merge request!516[bugfix] Add missing specialization FieldTraits<MultiTypeBlockMatrix>
Pipeline #59703 passed
...@@ -404,6 +404,18 @@ namespace Dune { ...@@ -404,6 +404,18 @@ namespace Dune {
}; };
/** @addtogroup DenseMatVec
@{
*/
template <typename... Rows>
struct FieldTraits< MultiTypeBlockMatrix<Rows...> >
{
using field_type = typename MultiTypeBlockMatrix<Rows...>::field_type;
using real_type = typename FieldTraits<field_type>::real_type;
};
/** /**
@brief << operator for a MultiTypeBlockMatrix @brief << operator for a MultiTypeBlockMatrix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment