Searched refs:vec_costintegrand (Results 1 – 5 of 5) sorted by relevance
| /petsc/src/ts/impls/explicit/rk/ |
| H A D | rk.c | 610 …cCall(TSComputeRHSFunction(quadts, rk->ptime + rk->time_step * c[i], Y[i], ts->vec_costintegrand)); in TSForwardCostIntegral_RK() 611 PetscCall(VecAXPY(quadts->vec_sol, rk->time_step * b[i], ts->vec_costintegrand)); in TSForwardCostIntegral_RK() 629 …ComputeRHSFunction(quadts, ts->ptime + ts->time_step * (1.0 - c[i]), Y[i], ts->vec_costintegrand)); in TSAdjointCostIntegral_RK() 630 PetscCall(VecAXPY(quadts->vec_sol, -ts->time_step * b[i], ts->vec_costintegrand)); in TSAdjointCostIntegral_RK() 664 PetscCall(TSComputeRHSFunction(quadts, rk->ptime + h * c[j], Y[j], ts->vec_costintegrand)); in TSRollBack_RK() 665 PetscCall(VecAXPY(quadts->vec_sol, -h * b[j], ts->vec_costintegrand)); in TSRollBack_RK()
|
| /petsc/src/ts/impls/implicit/theta/ |
| H A D | theta.c | 131 PetscCall(TSComputeRHSFunction(quadts, th->ptime0, th->X0, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 132 … PetscCall(VecAXPY(quadts->vec_sol, th->time_step0 * (1.0 - th->Theta), ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 134 PetscCall(TSComputeRHSFunction(quadts, ts->ptime, ts->vec_sol, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 135 PetscCall(VecAXPY(quadts->vec_sol, th->time_step0 * th->Theta, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 137 PetscCall(TSComputeRHSFunction(quadts, th->stage_time, th->X, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral() 138 PetscCall(VecAXPY(quadts->vec_sol, th->time_step0, ts->vec_costintegrand)); in TSThetaEvaluateCostIntegral()
|
| /petsc/src/ts/interface/sensitivity/ |
| H A D | tssen.c | 314 if (!ts->vec_costintegrand) { in TSSetCostIntegrand() 315 PetscCall(VecDuplicate(ts->vec_costintegral, &ts->vec_costintegrand)); in TSSetCostIntegrand() 317 PetscCall(VecSet(ts->vec_costintegrand, 0.0)); in TSSetCostIntegrand()
|
| /petsc/include/petsc/private/ |
| H A D | tsimpl.h | 208 Vec vec_costintegrand; /* workspace for Adjoint computations */ member
|
| /petsc/src/ts/interface/ |
| H A D | ts.c | 2515 PetscCall(VecDestroy(&ts->vec_costintegrand)); in TSSetUp() 2516 PetscCall(VecDuplicate(ts->quadraturets->vec_sol, &ts->vec_costintegrand)); in TSSetUp() 2613 PetscCall(VecDestroy(&ts->vec_costintegrand)); in TSReset()
|