[petsc-dev] Recover from TS failure
Mark Adams
mfadams at lbl.gov
Wed Nov 1 18:26:06 CDT 2017
On Wed, Nov 1, 2017 at 7:21 PM, Jed Brown <jed at jedbrown.org> wrote:
> Mark Adams <mfadams at lbl.gov> writes:
>
> >>
> >>
> >>
> >> You're in PetscTraceBackErrorHandler which is way too late. Back up.
> >> What caused the error?
> >>
> >>
> > SNES problem. It can be linear solver error, max its, or line search
> > failure. See attached.
> >
> > I see that I want to unset TS->errorifstepfailed. I see how to do that
> with
> > SNES, Will look again for TS,
>
> Dude, back up. You need to find out why the TS implementation is
> reporting ts->reason < 0. If it's a SNES failure and it repeats when
> the step is shortened, you need to fix that.
>
It does not repeat, it just fails and aborts. It never gets to my recover
code.
I see *-ts_error_if_step_fails *
I can set that to false right?
And I don't see a function interface.
> You can avoid an error by calling TSSetErrorIfStepFails(), but all the
> logic you're talking about is already in TS and jury-rigging it on the
> outside is counterproductive. So get back to the root of the problem
> and debug why SNES is failing.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171101/c80bb00f/attachment.html>
More information about the petsc-dev
mailing list