#include "petscts.h" PetscErrorCode TSGetQuadratureTS(TS ts,PetscBool *fwd,TS *quadts)
ts | - the TS context obtained from TSCreate() |
fwd | - flag indicating whether to evaluate cost integral in the forward run or the adjoint run | |
quadts | - the child TS context |