[petsc-users] Destroy ghosted vector that was used to duplicate

John Mousel john.mousel at gmail.com
Wed Jun 19 14:45:59 CDT 2013


Looking at the message queue graph in Totalview, it seems that I'm running
up the number of persistent communications when I try to resize a vector by
duplicating, copying, destroying, and calling VecCreateGhost.


On Wed, Jun 19, 2013 at 2:42 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Wed, Jun 19, 2013 at 6:24 PM, John Mousel <john.mousel at gmail.com>wrote:
>
>> Is it legal to destroy a ghosted vector if it has been used in
>> VecDuplicate?
>>
>
> This is fine.
>
>    MAtt
>
>
>> Something like:
>>
>> VecCreateGhost(...,vec1)
>> VecDuplicate(vec1,vec2)
>> VecDuplicate(vec1,vec3)
>> VecDestroy(vec1)
>> VecAXPY(vec2,1.0,vec3)
>>
>> Is this legal or are the scatters left hanging in the ether?
>>
>>
>> John
>>
>
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130619/4784e9ea/attachment.html>


More information about the petsc-users mailing list