[petsc-dev] Do I need to MatDestroy the Mat returned by MatISGetMPIXAIJ ?

Stefano Zampini stefano.zampini at gmail.com
Thu Jul 13 05:46:48 CDT 2017


Yes if you're done using it.
MAT_REUSE_MATRIX is just a flag that will skip preallocation for the
returned matrix.


2017-07-13 13:18 GMT+03:00 Franck Houssen <franck.houssen at inria.fr>:

> Do I need to MatDestroy the Mat returned by MatISGetMPIXAIJ ? Does the
> answer depend on reuse (MAT_INITIAL_MATRIX or MAT_REUSE_MATRIX) ?
>
> Franck
>



-- 
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170713/b94e3456/attachment.html>


More information about the petsc-dev mailing list