[petsc-users] Calling MatDestroy on MatGetDiagonalBlock
Satish Balay
balay at mcs.anl.gov
Tue Jan 5 17:21:01 CST 2016
Looking at example usages in src/ksp/pc/impls/bjacobi/bjacobi.c or
src/ksp/pc/impls/gasm/gasm.c - there is no call to MatDestroy..
[or MatRestoreDiagonalBlock]
Satish
On Tue, 5 Jan 2016, Bhalla, Amneet Pal S wrote:
> Hi Folks,
>
> Is it safe to call MatDestroy on the sequential matrix returned by MatGetDiagonalBlock() after it’s no longer used?
>
>
> Thanks,
>
> — Amneet
> =====================================================
> Amneet Bhalla
> Postdoctoral Research Associate
> Department of Mathematics and McAllister Heart Institute
> University of North Carolina at Chapel Hill
> Email: amneet at unc.edu<mailto:amneet at unc.edu>
> Web: https://abhalla.web.unc.edu<https://abhalla.web.unc.edu/>
> =====================================================
>
>
More information about the petsc-users
mailing list