Re: [petsc-dev] broken TS example related to Jacobian and coloring etc.
15 Aug
2012
15 Aug
'12
8:31 a.m.
On Wed, Aug 15, 2012 at 6:41 AM, Barry Smith <[email protected]> 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?
5109
Age (days ago)
5109
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jed Brown