Skip to content
Snippets Groups Projects
Commit ca9342c0 authored by Oliver Sander's avatar Oliver Sander
Browse files

Specialize FieldTraits for MultiTypeBlockVector

This allows other code to access field_type and real_type for a MultiTypeBlockVector
using the FieldTraits class.  Caveat: in principle, individual entries of a
MultiTypeBlockVector could use different field_types.  The implementation always
returns the first one.
parent 9f1cabe5
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,19 @@ namespace Dune {
}
};
/** @addtogroup DenseMatVec
@{
*/
template <typename Arg0, typename... Args>
struct FieldTraits< MultiTypeBlockVector<Arg0, Args...> >
{
typedef typename FieldTraits<Arg0>::field_type field_type;
typedef typename FieldTraits<Arg0>::real_type real_type;
};
/**
@}
*/
/**
@brief A Vector class to support different block types
......
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