Skip to content
Snippets Groups Projects
Commit 54bab424 authored by Christian Engwer's avatar Christian Engwer
Browse files

FieldTraits have to specialized for FieldVector and

DynamicVector. Inheritance doesn't work for template specialization
lookup... not that this specialization isn't necessary, if you are
using FieldVector<T,n> via the interface class DenseVector< FieldVector<T,n> >

[[Imported from SVN: r6174]]
parent 080af23a
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,13 @@ namespace Dune {
typedef typename container_type::size_type size_type;
};
template< class K >
struct FieldTraits< DynamicVector<K> >
{
typedef typename FieldTraits<K>::field_type field_type;
typedef typename FieldTraits<K>::real_type real_type;
};
/** \brief Construct a vector with a dynamic size.
*
* \tparam K is the field type (use float, double, complex, etc)
......
......@@ -35,6 +35,13 @@ namespace Dune {
typedef typename container_type::size_type size_type;
};
template< class K, int SIZE >
struct FieldTraits< FieldVector<K,SIZE> >
{
typedef typename FieldTraits<K>::field_type field_type;
typedef typename FieldTraits<K>::real_type real_type;
};
/** \brief vector space out of a tensor product of fields.
*
* \tparam K the field type (use float, double, complex, etc)
......
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