[petsc-dev] TS creating SNES for explicit method

Barry Smith bsmith at mcs.anl.gov
Sun Aug 14 15:27:19 CDT 2011


  Same problem with TSSetFromOptions.   Changing them both, hope I don't screw up.

   Barry

On Aug 14, 2011, at 3:10 PM, Jed Brown wrote:

> 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.




More information about the petsc-dev mailing list