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" <[email protected]> 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
>

Reply via email to