# TSAdaptCandidateAdd
add a candidate scheme for the adaptive controller to select from 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptCandidateAdd(TSAdapt adapt, const char name[], PetscInt order, PetscInt stageorder, PetscReal ccfl, PetscReal cost, PetscBool inuse)
```
Logically collective


## Input Parameters

- ***adapt -*** time step adaptivity context, obtained with `TSGetAdapt()` or `TSAdaptCreate()`
- ***name -*** name of the candidate scheme to add
- ***order -*** order of the candidate scheme
- ***stageorder -*** stage order of the candidate scheme
- ***ccfl -*** stability coefficient relative to explicit Euler, used for CFL constraints
- ***cost -*** relative measure of the amount of work required for the candidate scheme
- ***inuse -*** indicates that this scheme is the one currently in use, this flag can only be set for one scheme





## Fortran Note
This routine is not available in Fortran.


## See Also
 [](chapter_ts), `TSAdapt`, `TSAdaptCandidatesClear()`, `TSAdaptChoose()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/interface/tsadapt.c.html#TSAdaptCandidateAdd">src/ts/adapt/interface/tsadapt.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
