[petsc-users] Duplicate vector without memory allocation

Matthew Knepley knepley at gmail.com
Thu May 17 04:17:35 CDT 2018


On Thu, May 17, 2018 at 4:50 AM, Praveen C <cpraveen at gmail.com> wrote:

> Dear all
>
> I have a vector created with VecCreateGhostBlockWithArray. Is it possible
> to duplicate this vector without allocating memory, so that I can then
> place an existing array into it ?
>

No, you just have to create it the same way again.

  Thanks,

    Matt


> Thanks
> praveen




-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180517/bd6ee3a4/attachment.html>


More information about the petsc-users mailing list