Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/
H A Dex20opt_p.c27 Vec Lambda2[1], Mup2[1]; /* second-order adjoint variables */ member
416 PetscCall(MatCreateVecs(user.Jacp, &user.Mup2[0], NULL)); in main()
500 PetscCall(VecDestroy(&user.Mup2[0])); in main()
622 PetscCall(TSSetCostHessianProducts(ts, 1, ctx->Lambda2, ctx->Mup2, ctx->Dir)); in Adjoint2()
652 PetscCall(VecGetArray(ctx->Mup2[0], &y_ptr)); in Adjoint2()
654 PetscCall(VecRestoreArray(ctx->Mup2[0], &y_ptr)); in Adjoint2()
666 PetscCall(VecGetArrayRead(ctx->Mup2[0], &z_ptr)); in Adjoint2()
672 PetscCall(VecRestoreArrayRead(ctx->Mup2[0], &z_ptr)); in Adjoint2()
/petsc/src/ts/tutorials/optimal_control/
H A Dex1.c12 Vec U, Lambda[1], Mup[1], Lambda2[1], Mup2[1], Dir; member
326 PetscCall(MatCreateVecs(aircraft.Jacp, &aircraft.Mup2[0], NULL)); in main()
407 PetscCall(VecDestroy(&aircraft.Mup2[0])); in main()
584 PetscCall(TSSetCostHessianProducts(actx->ts, 1, actx->Lambda2, actx->Mup2, Dir)); in ComputeObjHessianWithSOA()
606 PetscCall(VecSet(actx->Mup2[0], 0.0)); in ComputeObjHessianWithSOA()
615 PetscCall(VecGetArrayRead(actx->Mup2[0], &z_ptr)); in ComputeObjHessianWithSOA()
617 PetscCall(VecRestoreArrayRead(actx->Mup2[0], &z_ptr)); in ComputeObjHessianWithSOA()