<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Please send the list of your command line options and the screen output with -ts_monitor.
<div class=""><br class="">
</div>
<div class="">Hong (Mr.)<br class="">
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Apr 28, 2020, at 11:00 PM, Yingjie Wu <<a href="mailto:yjwu16@gmail.com" class="">yjwu16@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div style="margin: 0px; white-space: pre-wrap;" class="">Thank you very much for your reply.</div>
<p style="margin:0px;white-space:pre-wrap" class=""></p>
<div style="margin: 0px; white-space: pre-wrap;" class="">I tried both switches, but unfortunately they didn't seem to meet my needs.</div>
<div style="margin: 0px;" class=""><span style="white-space:pre-wrap" class=""> </span><span style="white-space:normal" class="">-ts_adapt_always_accept </span> <span style="white-space:pre-wrap" class=""> The switch doesn't seem to work, reporting errors
when the maximum number of steps is reached without convergence, then the program exits.</span></div>
<div style="margin: 0px;" class=""> -ts_error_if_step_fails 0 <span style="white-space:pre-wrap" class=""> This switch accepts the non-convergence time step and outputs the result, but does not continue into the next time step calculation (</span><span style="white-space:pre-wrap" class="">
The time step hasn't reached the maximum time step I set</span><span style="white-space:pre-wrap" class="">).
</span><span style="white-space:pre-wrap" class=""></span><span style="white-space:pre-wrap" class="">And I wonder if the variable behind this switch is optional? What does it mean?</span></div>
<div style="margin: 0px; white-space: pre-wrap;" class="">I hope to achieve in the case of non-convergence Newton step( for example, the maximum number of Newton iteration steps reached -snes_max_it 50), can go in the next time step calculation.</div>
<div style="margin: 0px;" class=""><br class="">
</div>
<div style="margin: 0px;" class="">Thanks,</div>
<div style="margin: 0px;" class="">Yingjie</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Zhang, Hong <<a href="mailto:hongzhang@anl.gov" class="">hongzhang@anl.gov</a>> 于2020年4月28日周二 下午10:51写道:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-ts_error_if_step_fails 0<br class="">
<br class="">
You might want to find out why the nonlinear solver does not converge first. If you have a hand-written Jacobian, you can validate it with -snes_test_jacobian 1 (for a small test case).<br class="">
<br class="">
Hong (Mr.)<br class="">
<br class="">
> On Apr 28, 2020, at 8:21 AM, Yingjie Wu <<a href="mailto:yjwu16@gmail.com" target="_blank" class="">yjwu16@gmail.com</a>> wrote:<br class="">
> <br class="">
> Dear PETSc developers <br class="">
> Hi, <br class="">
> <br class="">
> I have recently used TS to solve nonlinear equations with time terms. since the convergence of my model is not very good, i would like to set to iterative fixed nonlinear steps per time step. If the problem does not meet the SNES convergence criteria after
fixed number of nonlinear steps , then go to the next time step calculation. I tried -snes_max_it , but didn't achieve the effect I wanted, and the program stopped after iterating the fixed number of steps. How should I set up in the program?<br class="">
> <br class="">
> Thanks,<br class="">
> Yingjie<br class="">
<br class="">
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>