[petsc-dev] ts/examples/tutorials/ex11 test garbage?

Barry Smith bsmith at mcs.anl.gov
Sun Aug 14 22:15:48 CDT 2011


On Aug 14, 2011, at 9:53 PM, Jed Brown wrote:

> On Sun, Aug 14, 2011 at 14:14, Barry Smith <bsmith at mcs.anl.gov> wrote:
>  It doesn't look like the SNES is even solving but TS just trots merrily along. Shouldn't TS crap out if SNES diverges?
> 
> It shouldn't "crap out", it should reject the step, shorten it, compute a fresh Jacobian (if the Jacobian was being lagged), and try again. Thanks for reminding me that this should be done sooner rather than later.
>  
> 
>  Isn't this test data from something that is failing? Should it not be there?
> 
> Yeah, was that example converging when you first created it?
> 
> changeset:   15757:896f032fd4a8
> parent:      15750:1f53ec9d4e00
> user:        Barry Smith bsmith at mcs.anl.gov
> date:        Fri Apr 23 15:03:44 2010 -0500
> summary:     some code cleanup and further work on DMMG version 2

   Thanks for pointing this out. This example is all wrong and I've removed it. I must have done that before I decided how to get rid of DMMG.

   Barry

> 
> diff --git a/src/ts/examples/tutorials/ex7.c b/src/ts/examples/tutorials/ex11.c
> copy from src/ts/examples/tutorials/ex7.c
> copy to src/ts/examples/tutorials/ex11.c
> --- a/src/ts/examples/tutorials/ex7.c
> +++ b/src/ts/examples/tutorials/ex11.c
> [changes]




More information about the petsc-dev mailing list