[petsc-users] Calling MatDestroy on MatGetDiagonalBlock

Bhalla, Amneet Pal S amneetb at live.unc.edu
Tue Jan 5 17:46:58 CST 2016



On Jan 5, 2016, at 3:32 PM, Barry Smith <bsmith at mcs.anl.gov<mailto:bsmith at mcs.anl.gov>> wrote:

So  get -> no destroy
       create -> destroy

Is MatGetSubMatrices() exception to this rule? The manual says to call the destroy() function after done with it.

http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetSubMatrices.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160105/48c007e2/attachment-0001.html>


More information about the petsc-users mailing list