[petsc-users] Turning off TSADAPT still adapts time step

Jed Brown jed at jedbrown.org
Mon Apr 27 11:55:07 CDT 2015


Mark Lohry <mlohry at princeton.edu> writes:

> TSAdaptChoose_None is being called, yes. Output with -ts_adapt monitor 
> looks like this:
>
>        TSAdapt 'none': step  17 accepted t=680        + 4.000e+01 
> family='beuler' scheme=0:'(null)' dt=4.000e+01
>        TSAdapt 'none': step  18 accepted t=720        + 4.000e+01 
> family='beuler' scheme=0:'(null)' dt=4.000e+01
>        TSAdapt 'none': step  19 accepted t=760        + 4.000e+01 
> family='beuler' scheme=0:'(null)' dt=4.000e+01
>        TSAdapt 'none': step  20 stage rejected t=800        + 4.000e+01 
> retrying with dt=1.000e+01

Add -snes_converged_reason.  What do you want to do when the solver
fails?  Pretend like it succeeded and get the wrong answer?  Usually
people shorten the time step and retry, which is what you see happening
here.

You can call TSAdaptSetCheckStage and have your function unconditionally
set accept to PETSC_TRUE (and you'll likely get the wrong answer).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150427/1be772ad/attachment.pgp>


More information about the petsc-users mailing list