[Dune] PDELab - ISTLBlockVectorContainer

Markus Blatt markus at dr-blatt.de
Wed Aug 27 15:38:55 CEST 2014


Hi,

there is a special list for dune-pdelab (see
http://www.dune-project.org/mailinglists.html), where you might get
your answers either sooner or more competent.

On Wed, Aug 27, 2014 at 03:22:03PM +0200, Christian Kaltenecker wrote:
> I have an compilation error, when I try to use the mmv-function of
> the BCRSMatrix from dune-istl regarding the ISTLBlockVectorContainer
> from PDELab:
> 
> ----------------------------------
> 
> /home/user/Bachelor/Dune/dune-istl/dune/istl/bcrsmatrix.hh:1679:22:
> error: no match for ‘operator[]’ (operand types are ‘const Dune::PDELab::ISTLBlockVectorContainer<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLevelGridViewTraits<const
> Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::QkLocalFiniteElementMap<Dune::GridView<Dune::DefaultLevelGridViewTraits<const
> Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, double,
> double, 1ul>,
> Dune::PDELab::OverlappingConformingDirichletConstraints,
> Dune::PDELab::ISTLVectorBackend<>, Dune::PDELab::LeafOrderingTag<Dune::PDELab::DefaultLeafOrderingParams>
> >, Dune::BlockVector<Dune::FieldVector<double, 1>,
> std::allocator<Dune::FieldVector<double, 1> > > >’ and
> ‘Dune::BCRSMatrix<Dune::FieldMatrix<double, 1, 1>,
> std::allocator<Dune::FieldMatrix<double, 1, 1> > >::size_type {aka
> long unsigned int}’)
> 
> (*j).umtv(x[i.index()],y[j.index()]);

the ISTLBlockVectorContainer does not provide the full interface as
needed by BCRSMatrix. If you really need to call methods from
BCRSMatrix, you need to access the underlying container by calling
ISTLBlockVectorContainer::base()

HTH

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140827/0231f1c6/attachment.sig>


More information about the Dune mailing list