<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 7:21 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> writes:<br>
<br>
>><br>
>><br>
>><br>
>> You're in PetscTraceBackErrorHandler which is way too late.  Back up.<br>
>> What caused the error?<br>
>><br>
>><br>
> SNES problem. It can be linear solver error,  max its, or line search<br>
> failure. See attached.<br>
><br>
> I see that I want to unset TS->errorifstepfailed. I see how to do that with<br>
> SNES, Will look again for TS,<br>
<br>
</div></div>Dude, back up.  You need to find out why the TS implementation is<br>
reporting ts->reason < 0.  If it's a SNES failure and it repeats when<br>
the step is shortened, you need to fix that.<br></blockquote><div><br></div><div>It does not repeat, it just fails and aborts. It never gets to my recover code.</div><div><br></div><div>I see <b style="color:rgb(0,0,0);font-family:Times;font-size:medium">-ts_error_if_step_fails </b></div><div><br></div><div>I can set that to false right? </div><div><br></div><div>And I don't see a function interface.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
You can avoid an error by calling TSSetErrorIfStepFails(), but all the<br>
logic you're talking about is already in TS and jury-rigging it on the<br>
outside is counterproductive.  So get back to the root of the problem<br>
and debug why SNES is failing.<br>
</blockquote></div><br></div></div>