Home
last modified time | relevance | path

Searched refs:vec_costintegral (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/interface/sensitivity/
H A Dtssen.c305 PetscCall(VecDestroy(&ts->vec_costintegral)); in TSSetCostIntegrand()
306 ts->vec_costintegral = costintegral; in TSSetCostIntegrand()
308 if (!ts->vec_costintegral) { /* Create a seq vec if user does not provide one */ in TSSetCostIntegrand()
309 PetscCall(VecCreateSeq(PETSC_COMM_SELF, numcost, &ts->vec_costintegral)); in TSSetCostIntegrand()
311 PetscCall(VecSet(ts->vec_costintegral, 0.0)); in TSSetCostIntegrand()
315 PetscCall(VecDuplicate(ts->vec_costintegral, &ts->vec_costintegrand)); in TSSetCostIntegrand()
1594 …if ((ts->vec_costintegral || ts->quadraturets) && !ts->costintegralfwd) PetscCall(TSAdjointCostInt… in TSAdjointSolve()
/petsc/include/petsc/private/
H A Dtsimpl.h202 Vec vec_costintegral; member