[petsc-dev] speaking of being drunk while writing code

Jed Brown jedbrown at mcs.anl.gov
Sun Nov 25 03:49:39 CST 2012


Caught. I think I wrote the comment before I realized that it was better to
match against the originaldm, especially since it's needed from callers
like DMSNESSetFunction.

https://bitbucket.org/petsc/petsc-dev/changeset/39c79c90e0f7a55f9466e52ce40c3a00f181db65


On Sun, Nov 25, 2012 at 4:37 AM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>    It takes some serious beer goggles to mix up SNES and DM (same problem
> with KSP and TS)
>
>
>
>   /* This is NOT reference counted. The SNES that originally created this
> context is cached here to implement copy-on-write.
>    * Fields in the SNESDM should only be written if the SNES matches
> originalsnes.
>    */
>   DM originaldm;
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121125/741ae8fb/attachment.html>


More information about the petsc-dev mailing list