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

Markus Blatt markus at dr-blatt.de
Thu Aug 15 12:05:12 CEST 2013


On Thu, Aug 15, 2013 at 11:34:10AM +0200, Christian Engwer wrote:
> New commit, appeared at Thu Aug 15 11:34:10 2013 +0200
> as part of the following ref changes:
> 
>     branch refs/heads/master    updated from f834769 -> ad74db9
> 
> Browsable version: http://cgit.dune-project.org/repositories/dune-istl/commit/?id=e40ce76ff0080a1303ba8a1982ac284f8f5cd64d
> 
> ======================================================================
> 
> commit e40ce76ff0080a1303ba8a1982ac284f8f5cd64d
> Author: Christian Engwer <christi at dune-project.org>
> Date:   Thu Aug 15 11:22:40 2013 +0200
> 
>     [BlockVector]
>     add FieldTraits specialization for BlockVector (derived from the patch by Bernd Flemisch)
> 
>  dune/istl/bvector.hh | 19 ++++++++++++++++---
>  1 file changed, 16 insertions(+), 3 deletions(-)
> 
> 
> 
> diff --git a/dune/istl/bvector.hh b/dune/istl/bvector.hh
> index 1fd965c..1d4029c 100644
> --- a/dune/istl/bvector.hh
> +++ b/dune/istl/bvector.hh
> @@ -235,10 +235,9 @@ namespace Dune {
>    };
>  
>    /**
> -              @addtogroup ISTL_SPMV
> -              @{
> +     @addtogroup ISTL_SPMV
> +     @{
>     */
> -
>    /**
>        \brief A vector of blocks with memory management.
>  
> @@ -538,6 +537,20 @@ namespace Dune {
>    };
>  
>    /** @} */
> +
> +  /** @addtogroup DenseMatVec
> +      @{

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.

Markus
-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858  Fax: +49 (0)322 1108991658 




More information about the Dune-devel mailing list