[Dune-devel] [Dune-Commit] [Commit] dune-istl - e40ce76: [BlockVector] add FieldTraits specialization for BlockVector (derived from the patch by Bernd Flemisch)

Christian Engwer christian.engwer at uni-muenster.de
Thu Aug 15 15:05:25 CEST 2013


> > +  /** @addtogroup DenseMatVec
> > +      @{

we have common anyway and it a speciallization of this Traits class in
common.

> Does this make a sense for a group define in dune-common?
> 
> > +   */
> > +  template<class B, class A>
> > +  struct FieldTraits< BlockVector<B, A> >
> > +  {
> > +    typedef typename FieldTraits<B>::field_type field_type;
> > +    typedef typename FieldTraits<B>::real_type real_type;
> > +  };

> Personally, I would put this into the default implementation. This
> might save work for other or future implementation of the interface.

I though about this as well. It is currently not possible and will
require significant changes to ftraits.hh in dune-common. This was the
easy part... the nicer one would require more work. But please feel
free to open a feature-request-issue ;-)

Ciao
Christian




More information about the Dune-devel mailing list