#include "petscts.h" PetscErrorCode TSCreateQuadratureTS(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 |