[dune-pdelab] ISTLBlockVectorContainer::size() method
Christian Engwer
christian.engwer at uni-muenster.de
Thu Sep 1 16:25:26 CEST 2011
Hi,
> It appears that ISTLBlockVectorContainer has no size method,
> although it wraps around BlockVector, which does.
> Instead it wraps BlockVector's N() method, which does exactly the same
> thing(currently) as size().
> Please add the size() method to ISTLBlockVectorContainer,
> and possibly deprecate N() method in BlockVector, unless it serves some purpose.
a) the interface is what it is ;-)
b) the size method is not exported on purpose. The
ISTLBlockVectorContainer should encapsulate the BlockVector, and
not extend it. It does provide a very different semantic. If you
want to access methods of the BlockVector, you can access the
encapsulated block vector and then call the method.
Christian
More information about the dune-pdelab
mailing list