TSAdaptSetFromOptions#

Sets various TSAdapt parameters from user options.

Synopsis#

#include "petscts.h" 
PetscErrorCode TSAdaptSetFromOptions(TSAdapt adapt, PetscOptionItems *PetscOptionsObject)

Collective

Input Parameters#

Options Database Keys#

  • -ts_adapt_type - algorithm to use for adaptivity

  • -ts_adapt_always_accept - always accept steps regardless of error/stability goals

  • -ts_adapt_safety - safety factor relative to target error/stability goal

  • -ts_adapt_reject_safety - extra safety factor to apply if the last step was rejected

  • -ts_adapt_clip <low,high> - admissible time step decrease and increase factors

  • -ts_adapt_dt_min - minimum timestep to use

  • -ts_adapt_dt_max - maximum timestep to use

  • -ts_adapt_scale_solve_failed - scale timestep by this factor if a solve fails

  • -ts_adapt_wnormtype <2 or infinity> - type of norm for computing error estimates

  • -ts_adapt_time_step_increase_delay - number of timesteps to delay increasing the time step after it has been decreased due to failed solver

Note#

This function is automatically called by TSSetFromOptions()

See Also#

TS: Scalable ODE and DAE Solvers, TSAdapt, TSGetAdapt(), TSAdaptSetType(), TSAdaptSetAlwaysAccept(), TSAdaptSetSafety(), TSAdaptSetClip(), TSAdaptSetScaleSolveFailed(), TSAdaptSetStepLimits(), TSAdaptSetMonitor()

Level#

advanced

Location#

src/ts/adapt/interface/tsadapt.c

Implementations#

TSAdaptSetFromOptions_DSP() in src/ts/adapt/impls/dsp/adaptdsp.c


Index of all TS routines
Table of Contents for all manual pages
Index of all manual pages