[Dune-devel] [Dune-Commit] [Commit] dune-istl - 002e800: [BlockVector] fix usage of FieldTraits (similar to the PromotionTraits)

Oliver Sander sander at igpm.rwth-aachen.de
Thu Aug 15 22:43:05 CEST 2013


Am 15.08.2013 22:36, schrieb Christian Engwer:
> On Thu, Aug 15, 2013 at 10:18:38PM +0200, Oliver Sander wrote:
>> Hi Christian,
>> shouldn't this be enough to fix the issue?  Each BlockVector knows the field_type,
>> no matter how deep the template nesting hierarchy is.  Why do you still need
>> specializations of FieldTraits for BlockVectors?  (i.e. Bernd's patch?)
>
> Because the documentation of FieldTraits currently state that it also
> retrieves the correct types for Vector and Matrix classes.
>
> ... although I must admit that I was tempted to change the docs
> instead of the code ...
>
I would be tempted to do so as well.  If I am not mistaken that would save
from from having to specialize it for every class that uses it.

Cheers,
Oliver


> Ciao
> Christian
>





More information about the Dune-devel mailing list