[petsc-users] KSP and VecDestroy

Shiyuan gshy2014 at gmail.com
Sat Oct 8 12:11:48 CDT 2011


On Fri, Oct 7, 2011 at 9:10 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>  Did you call KSPDestroy()? References to two of the vectors are retained
> by the KSP object, only when the KSP object is destroyed are those
> references released and hence those two vectors destroyed.
>
> I did.  log_summary shows ksp is destroyed. But I called KSPDestroy() after
VecDestroy().  That might cause the problem. Thanks.
Shiyuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111008/079de246/attachment.htm>


More information about the petsc-users mailing list