[petsc-dev] DMSetDefaultSection destroys old sections

Jed Brown jedbrown at mcs.anl.gov
Thu Aug 30 17:16:42 CDT 2012


On Thu, Aug 30, 2012 at 5:12 PM, Matthew Knepley <knepley at gmail.com> wrote:

> Its not wrong. This is the way I wanted it. You set the PetscSection and
> give up control. If you
> do not want to give up control, then call PetscObjectReference() before
> passing it in.
>

Since this is (a) different from everything else in PETSc and (b) not
explicitly documented, it is doubly wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120830/885d9e88/attachment.html>


More information about the petsc-dev mailing list