:orphan: # TSRKSetMultirate Use the interpolation-based multirate `TSRK` method ## Synopsis ``` #include "petscts.h" PetscErrorCode TSRKSetMultirate(TS ts, PetscBool use_multirate) ``` Logically Collective ## Input Parameters - ***ts -*** timestepping context - ***use_multirate -*** `PETSC_TRUE` enables the multirate `TSRK` method, sets the basic method to be RK2A and sets the ratio between slow stepsize and fast stepsize to be 2 ## Options Database Key - ***-ts_rk_multirate -*** ## Note The multirate method requires interpolation. The default interpolation works for 1st- and 2nd- order RK, but not for high-order RKs except `TSRK5DP` which comes with the interpolation coefficients (binterp). ## See Also [](ch_ts), `TSRK`, `TSRKGetMultirate()` ## Level intermediate ## Location src/ts/impls/explicit/rk/rk.c ## Implementations TSRKSetMultirate_RK in src/ts/impls/explicit/rk/mrk.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/explicit/rk/rk.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)