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

Stefano Zampini stefano.zampini at gmail.com
Fri May 19 05:41:10 CDT 2017


No, MatIsGetLocalMat returns the sequential matrix object representing the
subdomain operator.

MatIsGetLocalMat_C is a function composition, typical of petsc
polymorphism. Look for PetscFunctionCompose and MatIsGetLocalMat_IS in
matis.c

Stefano


Il 19 Mag 2017 10:54, "Franck Houssen" <franck.houssen at inria.fr> ha scritto:

> 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/5c72e437/attachment.html>


More information about the petsc-dev mailing list