Ummmm. OK. We should remove custom -fd arguments from every example first and use -snes_fd_coloring instead. The example problems should work with that and if they do not then we fix it. The context should always be owned elsewhere so if we manually unset it we should be fine.
- Peter On Aug 15, 2012 8:31 AM, "Jed Brown" <jedbrown at mcs.anl.gov> wrote: > On Wed, Aug 15, 2012 at 6:41 AM, Barry Smith <bsmith at mcs.anl.gov> wrote: > >> I think it uses null in order to delay computing the matrix coloring etc >> from the time of SNESSetJacobian() to a later time. I guess what could >> happen is it creates a n "empty" fdcoloring beast and passes that into >> SNESSetJacobian() and then fills it up later when it has the information it >> needs. > > > Right, I think I would prefer that. A side-effect is that the caller > setting coloring is now responsible for ownership of the context. but it is > for everything else anyway. > > Lisandro asked for destructors for those contexts, but I'm not sure we > need a separate one for every context slot. Would one per SNES be enough? > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120815/b945a17b/attachment.html>
