[petsc-users] Calling MatDestroy on MatGetDiagonalBlock
Barry Smith
bsmith at mcs.anl.gov
Tue Jan 5 17:53:40 CST 2016
Yeah, looks like MatGetSubMatrix() and MatGetSubMatrices() didn't get renamed to the "current" approach.
Barry
> On Jan 5, 2016, at 5:46 PM, Bhalla, Amneet Pal S <amneetb at live.unc.edu> wrote:
>
>
>
>> On Jan 5, 2016, at 3:32 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>>
>> So get -> no destroy
>> create -> destroy
>
> Is MatGetSubMatrices() exception to this rule? The manual says to call the destroy() function after done with it.
>
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetSubMatrices.html
More information about the petsc-users
mailing list