Home
last modified time | relevance | path

Searched refs:ywork (Results 1 – 4 of 4) sorted by relevance

/petsc/src/ksp/pc/impls/lmvm/
H A Dlmvmpc.c10 Vec xwork, ywork; member
190 if (!ctx->xwork) PetscCall(MatCreateVecs(B, &ctx->xwork, &ctx->ywork)); in PCApply_LMVM()
196 By = ctx->ywork; in PCApply_LMVM()
200 PetscCall(VecGetSubVector(ctx->ywork, ctx->inactive, &ysub)); in PCApply_LMVM()
202 PetscCall(VecRestoreSubVector(ctx->ywork, ctx->inactive, &ysub)); in PCApply_LMVM()
213 PetscCall(VecDestroy(&ctx->ywork)); in PCReset_LMVM()
291 PetscCall(VecDestroy(&ctx->ywork)); in PCDestroy_LMVM()
/petsc/src/tao/pde_constrained/tutorials/
H A Dparabolic.c41 Vec ywork; member
270 PetscCall(VecSet(user->ywork, 0.0)); in FormGradient()
271 PetscCall(Scatter_i(user->ywork, user->yiwork, user->yi_scatter, user->nt)); in FormGradient()
276 PetscCall(Gather_i(user->ywork, user->yiwork, user->yi_scatter, user->nt)); in FormGradient()
282 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormGradient()
303 PetscCall(VecSet(user->ywork, 0.0)); in FormFunctionGradient()
304 PetscCall(Scatter_i(user->ywork, user->yiwork, user->yi_scatter, user->nt)); in FormFunctionGradient()
309 PetscCall(Gather_i(user->ywork, user->yiwork, user->yi_scatter, user->nt)); in FormFunctionGradient()
318 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormFunctionGradient()
911 PetscCall(VecDuplicate(user->y, &user->ywork)); in ParabolicInitialize()
[all …]
H A Delliptic.c44 Vec ywork; member
213 PetscCall(MatMultTranspose(user->MQ, user->dwork, user->ywork)); in FormGradient()
218 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormGradient()
232 PetscCall(MatMultTranspose(user->MQ, user->dwork, user->ywork)); in FormFunctionGradient()
240 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormFunctionGradient()
956 PetscCall(VecDuplicate(user->y, &user->ywork)); in EllipticInitialize()
1153 PetscCall(VecSet(user->ywork, 1.0)); in EllipticInitialize()
1154 PetscCall(VecAYPX(user->ywork, user->noise, user->ytrue)); in EllipticInitialize()
1155 PetscCall(MatMult(user->MQ, user->ywork, user->d)); in EllipticInitialize()
1196 PetscCall(VecDestroy(&user->ywork)); in EllipticDestroy()
[all …]
H A Dhyperbolic.c37 Vec ywork; member
250 PetscCall(MatMult(user->QT, user->dwork, user->ywork)); in FormGradient()
259 PetscCall(VecAXPY(user->ywork, 0.5 * user->alpha, user->lwork)); in FormGradient()
261 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormGradient()
275 PetscCall(MatMult(user->QT, user->dwork, user->ywork)); in FormFunctionGradient()
286 PetscCall(VecAXPY(user->ywork, 0.5 * user->alpha, user->lwork)); in FormFunctionGradient()
291 PetscCall(Gather(G, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in FormFunctionGradient()
1005 PetscCall(VecDuplicate(user->y, &user->ywork)); in HyperbolicInitialize()
1148 PetscCall(VecDestroy(&user->ywork)); in HyperbolicDestroy()
1196 PetscCall(Scatter(X, user->ywork, user->state_scatter, user->uwork, user->design_scatter)); in HyperbolicMonitor()
[all …]