:orphan:
# TSThetaSetEndpoint
Sets whether to use the endpoint variant of the method (e.g. trapezoid/Crank-Nicolson instead of midpoint rule) for `TSTHETA` 
## Synopsis
```
#include "petscts.h"   
PetscErrorCode TSThetaSetEndpoint(TS ts, PetscBool flg)
```
Not Collective


## Input Parameters

- ***ts -*** timestepping context
- ***flg -*** `PETSC_TRUE` to use the endpoint variant



## Options Database Key

- ***-ts_theta_endpoint <flg> -*** use the endpoint variant





## See Also
 [](ch_ts), `TSTHETA`, `TSCN`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/theta/theta.c.html#TSThetaSetEndpoint">src/ts/impls/implicit/theta/theta.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/theta/theta.c.html#TSThetaSetEndpoint_Theta">TSThetaSetEndpoint_Theta in src/ts/impls/implicit/theta/theta.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/impls/implicit/theta/theta.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)  
