[petsc-dev] Copy *SNES-struct deeply

Jed Brown jedbrown at mcs.anl.gov
Thu Feb 28 06:10:38 CST 2013


On Thu, Feb 28, 2013 at 6:50 AM, Matthew Knepley <knepley at gmail.com> wrote:

> Ah, its specialized:
>
>
> https://bitbucket.org/petsc/petsc-dev/src/923de80728797e2783dffed96365fada710347b8/include/petscdmplex.h?at=default#cl-23
>
> Is there an objection to me promoting this?
>

Matt, your current implementation is sort of a mix of shallow (with respect
to private DM_Plex stuff) clone and deep/rebuilt (with respect to DM stuff
like defaultSection). I think it's worth making consistent, but safe
sharing semantics are tricky to specify. I think DMDA will be somewhat
involved regardless of the desired semantics.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130228/cc9ccd8c/attachment.html>


More information about the petsc-dev mailing list