[petsc-users] Calling MatDestroy on MatGetDiagonalBlock

Jed Brown jed at jedbrown.org
Tue Jan 5 19:29:51 CST 2016


Matthew Knepley <knepley at gmail.com> writes:

> How devastating would it be for Deal.II if we renamed them
> MatCreateSubMatrix()? ;)

I know it's consistent with respect to reference counting semantics, but
it might be harder for new users to find when searching the docs.  I
have no data either way.  I recall discussing years ago that having
paired MatGetSubMatrix/MatRestoreSubMatrix would simplify bookkeeping in
PCFieldSplit and some common user code.

If the name is changed, it's easy to support the deprecated name from C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20160105/d2288f90/attachment.pgp>


More information about the petsc-users mailing list