diff --git a/dune/common/dynvector.hh b/dune/common/dynvector.hh index b84e7cb0b6cb362c6b2dadda0d139b93371c23cb..8c9019e5367f732ea2d1fc40ee4a44d092b362fe 100644 --- a/dune/common/dynvector.hh +++ b/dune/common/dynvector.hh @@ -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) diff --git a/dune/common/fvector.hh b/dune/common/fvector.hh index 3acd392710a89a2d27f2b1115e645906e62699e1..4f886c02c08a6d6ff2cca648ca20a9c98b333147 100644 --- a/dune/common/fvector.hh +++ b/dune/common/fvector.hh @@ -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)