:orphan: # TSAdaptSetScaleSolveFailed Scale step size by this factor if solve fails ## Synopsis ``` #include "petscts.h" PetscErrorCode TSAdaptSetScaleSolveFailed(TSAdapt adapt, PetscReal scale) ``` Logically Collective ## Input Parameters - ***adapt -*** adaptive controller context - ***scale -*** scale ## Options Database Key - ***-ts_adapt_scale_solve_failed -*** to set scale step by this factor if solve fails ## See Also [](ch_ts), `TSAdapt`, `TSAdaptChoose()`, `TSAdaptGetScaleSolveFailed()`, `TSAdaptGetClip()` ## Level intermediate ## Location src/ts/adapt/interface/tsadapt.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/adapt/interface/tsadapt.c) [Index of all TS routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)