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

Andreas Nüßing andreas.nuessing at uni-muenster.de
Sat Jun 11 13:33:22 CEST 2016


Hi Oliver,

the plain vector can now been accessed using 'native':

Dune::PDELab::Backend::native(yourVectorBackendContainer) = yourBlockVector;

should do the trick.

Best,
    Andreas

Am 11. Juni 2016 13:01:08 MESZ, schrieb Oliver Sander <oliver.sander at tu-dresden.de>:
>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
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>dune-pdelab mailing list
>dune-pdelab at dune-project.org
>http://lists.dune-project.org/mailman/listinfo/dune-pdelab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20160611/d628824e/attachment.htm>


More information about the dune-pdelab mailing list