PETSc version 3.15.5
TSGetCostGradients
Returns the gradients from the TSAdjointSolve() 
Synopsis
#include "petscts.h"  
PetscErrorCode TSGetCostGradients(TS ts,PetscInt *numcost,Vec **lambda,Vec **mu)
Not Collective, but Vec returned is parallel if TS is parallel
Input Parameter
Output Parameter
|  | lambda | - vectors containing the gradients of the cost functions with respect to the ODE/DAE solution variables | 
|  | mu | - vectors containing the gradients of the cost functions with respect to the problem parameters | 
See Also
 TSSetCostGradients()
Level
intermediate
Location
src/ts/interface/sensitivity/tssen.c
Index of all Sensitivity routines
Table of Contents for all manual pages
Index of all manual pages