:orphan: # TSForwardCostIntegral Evaluate the cost integral in the forward run. ## Synopsis ``` #include "petscts.h" PetscErrorCode TSForwardCostIntegral(TS ts) ``` Collective ## Input Parameter - ***ts -*** time stepping context ## Note This function cannot be called until `TSStep()` has been completed. ## See Also [](ch_ts), `TS`, `TSSolve()`, `TSAdjointCostIntegral()` ## Level advanced ## Location src/ts/interface/sensitivity/tssen.c ## Implementations TSForwardCostIntegral_RK in src/ts/impls/explicit/rk/rk.c
TSForwardCostIntegral_Theta in src/ts/impls/implicit/theta/theta.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/sensitivity/tssen.c) [Index of all Sensitivity routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)