<div dir="ltr">On Sun, Aug 24, 2014 at 11:45 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">     What are your current needs? Do you want the program to just end in this case or do you want some kind of recovery when the matrix-free multiply causes a domain error?<br>
</div>
<span class="HOEnZb"><font color="#888888"><br>
  Barry</font></span></blockquote><div><br></div><div>Sorry it took me a while to get back... and I really appreciate al of the discussion surrounding this issue!</div><div><br></div><div>Currently what I need is for everything about the nonlinear solve (which is typically JFNK) to stop - but for the program to _not_ exit.  In particular I need to never run another residual evaluation for this nonlinear solve (because something made it into an invalid state).</div>
<div><br></div><div>As a workaround I have tried returning various "diverged" statuses in my linear and nonlinear convergence checks... but it still has a pesky problem where there are a couple more residual evaluations at the "end" of the nonlinear solve.</div>
<div><br></div><div>I may be able to work around that... but if there was any way that I could do a "snes->stop = true;" and have the whole thing just STOP (immediately, with no questions asked).... that would be cool :-)</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Derek</div><div><br></div></div></div></div>