[petsc-dev] MatISGetLocalMat: need to MatDestroy the returned local matrice ?

Franck Houssen franck.houssen at inria.fr
Fri May 19 03:54:09 CDT 2017


Hello, 

Do I need to MatDestroy the local matrix returned by MatISGetLocalMat ? (the global matrix has been created with MatCreateIS) 

Tried to look in the source tree... But I'am not sure to get the answer: in petsc-3.7.6/src/mat/impls/is/matis.c, MatISGetLocalMat seems to call MatISGetLocalMat_C, but, I can't find MatISGetLocalMat_C in the source tree !?... 

Franck 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170519/8054978b/attachment.html>


More information about the petsc-dev mailing list