petsc-3.12.5 2020-03-29
TSAdjointSolve
Solves the discrete ajoint problem for an ODE/DAE
Synopsis
#include "petscts.h"
PetscErrorCode TSAdjointSolve(TS ts)
Collective on TS
Input Parameter
ts -the TS context obtained from TSCreate()
Options Database
-ts_adjoint_view_solution <viewerinfo> -views the first gradient with respect to the initial values
Notes
This must be called after a call to TSSolve() that solves the forward problem
By default this will integrate back to the initial time, one can use TSAdjointSetSteps() to step back to a later time
See Also
TSCreate(), TSSetCostGradients(), TSSetSolution(), TSAdjointStep()
Level
intermediate
Location
src/ts/interface/sensitivity/tssen.c
Examples
src/ts/examples/tutorials/ex20adj.c.html
src/ts/examples/tutorials/ex20opt_p.c.html
src/ts/examples/tutorials/ex20opt_ic.c.html
src/tao/unconstrained/examples/tutorials/spectraladjointassimilation.c.html
Index of all Sensitivity routines
Table of Contents for all manual pages
Index of all manual pages