[petsc-dev] DMGetNamedGlobalVector() implementation?
Jed Brown
jedbrown at mcs.anl.gov
Thu Jul 19 13:54:18 CDT 2012
On Thu, Jul 19, 2012 at 1:50 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> Is there a way to fix the reference loop problem in PetscObjectCompose()?
> (Since you have a magic fix for DMGetNamedGlobalVector() can we use that
> everywhere)
>
Look at the ugly code in DMDestroy that takes care of the work vectors and
named list. Note that the API maintains that these named vectors have
reverse links. If you allow a mix, it gets messier. What about indirect
loops?
>
> You have to admit that introducing in a bunch of places separate
> constructs for containment rather than using a single universal construct
> is not good software development.
>
I agree, but I could not find an easy way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120719/1f27ff1b/attachment.html>
More information about the petsc-dev
mailing list