<div dir="ltr">Thanks, it is working fine.<div>Mark<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 4, 2023 at 1:12 PM Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This default probably shouldn't be zero, and probably lengthening steps should be more gentle after a recent failure. But Mark, please let us know if what's there works for you.<br>
<br>
"Zhang, Hong via petsc-users" <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> writes:<br>
<br>
> Hi Mark,<br>
><br>
> You might want to try -ts_adapt_time_step_increase_delay to delay increasing the time step after it has been decreased due to a failed solve.<br>
><br>
> Hong (Mr.)<br>
><br>
>> On Jan 2, 2023, at 12:17 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
>> <br>
>> I am using arkimex and the logic with a failed KSP solve is puzzling. This step starts with a dt of ~.005, the linear solver fails and cuts the time step by 1/4. So far, so good. The step then works but the next time step the time step goes to ~0.006.<br>
>> TS seems to have forgotten that it had to cut the time step back.<br>
>> Perhaps that logic is missing or my parameters need work?<br>
>> <br>
>> Thanks,<br>
>> Mark<br>
>> <br>
>> -ts_adapt_dt_max 0.01 # (source: command line)<br>
>> -ts_adapt_monitor # (source: file)<br>
>> -ts_arkimex_type 1bee # (source: file)<br>
>> -ts_dt .001 # (source: command line)<br>
>> -ts_max_reject 10 # (source: file)<br>
>> -ts_max_snes_failures -1 # (source: file)<br>
>> -ts_max_steps 8000 # (source: command line)<br>
>> -ts_max_time 14 # (source: command line)<br>
>> -ts_monitor # (source: file)<br>
>> -ts_rtol 1e-6 # (source: command line)<br>
>> -ts_type arkimex # (source: file)<br>
>> <br>
>> Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 2<br>
>> TSAdapt basic arkimex 0:1bee step 1 accepted t=0.001 + 2.497e-03 dt=5.404e-03 wlte=0.173 wltea= -1 wlter= <br>
>> -1<br>
>> 2 TS dt 0.00540401 time 0.00349731<br>
>> 0 SNES Function norm 1.358886930084e-05 <br>
>> Linear solve did not converge due to DIVERGED_ITS iterations 100<br>
>> Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE iterations 0<br>
>> TSAdapt basic step 2 stage rejected (DIVERGED_LINEAR_SOLVE) t=0.00349731 + 5.404e-03 retrying with dt=1.351e-03 <br>
>> 0 SNES Function norm 1.358886930084e-05 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 19<br>
>> 1 SNES Function norm 4.412110425362e-10 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 6<br>
>> 2 SNES Function norm 4.978968053066e-13 <br>
>> Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 2<br>
>> 0 SNES Function norm 8.549322067920e-06 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 14<br>
>> 1 SNES Function norm 8.357075378456e-11 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 4<br>
>> 2 SNES Function norm 4.983138402512e-13 <br>
>> Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 2<br>
>> 0 SNES Function norm 1.044832467924e-05 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 13<br>
>> 1 SNES Function norm 1.036101875301e-10 <br>
>> Linear solve converged due to CONVERGED_RTOL iterations 4<br>
>> 2 SNES Function norm 4.984888077288e-13 <br>
>> Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 2<br>
>> TSAdapt basic arkimex 0:1bee step 2 accepted t=0.00349731 + 1.351e-03 dt=6.305e-03 wlte=0.0372 wltea= -1 wlter= <br>
>> -1<br>
>> 3 TS dt 0.00630456 time 0.00484832<br>
>> 0 SNES Function norm 8.116559104264e-06 <br>
>> Linear solve did not converge due to DIVERGED_ITS iterations 100<br>
</blockquote></div>