[petsc-dev] XXXRegisterDestroy() are not called

Jed Brown jedbrown at mcs.anl.gov
Fri Apr 5 21:51:08 CDT 2013


On Fri, Apr 5, 2013 at 9:38 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>  I'm learn towards not having a master "destroy all lists" approach (the
> current model) and just having each XXXFinalizePackage() call
> PetscFunctionListDestroy(&appropriate) so the XRegisterDestroy() are gone.
>

Does anyone have  a reason to call XRegisterDestroy() independent of
XFinalizePackage()?

PetscFunctionListDestroy(&XList) is enough even in this case, but I'd like
to understand the use case if it exists.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130405/59a8cfae/attachment.html>


More information about the petsc-dev mailing list