[dune-pdelab] Assigning a BlockVector to an istl VectorBackend container

Oliver Sander oliver.sander at tu-dresden.de
Sat Jun 11 13:01:08 CEST 2016


Dear pdelab,

I have code that assembles an FE problem using pdelab and the istl backend.  Vector stuff ends
up in an istl::VectorBackend container type, and all is well.  However, at one point I need
to assign a vector given in a plain BlockVector to the istl::VectorBackend container.  This
used to be possible with

 myVectorBackendContainer.base() = myBlockVector;

This doesn't work anymore.  I can get the same result with

 *(xV.storage()) = x;

but that's a bit ugly.  What is the official way to assign a BlockVector to the corresponding
istl VectorBackend Container type?

Thanks,
Oliver

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20160611/92c59ec9/attachment.sig>


More information about the dune-pdelab mailing list