<div dir="auto"><br><span style="font-family:sans-serif">No, MatIsGetLocalMat returns the sequential matrix object representing the subdomain operator.</span><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><span style="font-family:sans-serif">MatIsGetLocalMat_C is a function composition, typical of petsc polymorphism. Look for PetscFunctionCompose and </span><span style="font-family:sans-serif">MatIsGetLocalMat_IS in matis.c</span></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Stefano<br></font><div dir="auto"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 19 Mag 2017 10:54, "Franck Houssen" <<a href="mailto:franck.houssen@inria.fr" target="_blank">franck.houssen@inria.fr</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>Hello,<br></div><div><br></div><div>Do I need to MatDestroy the local matrix returned by MatISGetLocalMat ? (the global matrix has been created with MatCreateIS)<br></div><div><br></div><div>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/<wbr>matis.c, MatISGetLocalMat seems to call MatISGetLocalMat_C, but, I can't find MatISGetLocalMat_C in the source tree !?...<br></div><div><br></div><div>Franck<br></div></div></div></blockquote></div></div>