# TSThetaGetEndpoint
Gets 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 TSThetaGetEndpoint(TS ts, PetscBool *endpoint)
```
Not Collective


## Input Parameter

- ***ts -*** timestepping context



## Output Parameter

- ***endpoint -*** `PETSC_TRUE` when using the endpoint variant





## See Also
 [](chapter_ts), `TSThetaSetEndpoint()`, `TSTHETA`, `TSCN`

## Level
advanced

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/impls/implicit/theta/theta.c.html#TSThetaGetEndpoint_Theta">TSThetaGetEndpoint_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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
