[petsc-dev] TS creating SNES for explicit method

Jed Brown jedbrown at mcs.anl.gov
Sun Aug 14 15:10:14 CDT 2011


On Sun, Aug 14, 2011 at 14:07, Barry Smith <bsmith at mcs.anl.gov> wrote:

> So if an explicit method is used then the SNES object is generated and
> TSView causes the SNES object to be printed even though it is never used and
> doesn't make sense in that context.
>
>   What is the plan to fix this?   Currently lots of nightly builds in TS
> are broken because -ts_view prints SNES object but output/* files do not
> have them.
>

Yeah, I want to hold functions in the SNES because otherwise there would be
too many combinations to have decent code that wasn't so order dependent. We
can just have the TS implementation declare whether it is implicit or
explicit.

Or we could print based on whether the SNES was actually used (e.g.
setupcalled or SNESGetNumberFunctionEvals), but this would skip printing the
SNES if it is paired with an implicit method that just hasn't used the SNES
yet.

I think it may be useful to know if the TS implementation is implicit,
explicit, or both, but if we didn't need/want to know, then we should just
move the call to SNESView() down to each implementation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110814/5df27998/attachment.html>


More information about the petsc-dev mailing list