Searched refs:Gwork (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/tao/bound/impls/bnk/ |
| H A D | bnk.c | 436 PetscCall(VecCopy(bnk->unprojected_gradient, bnk->Gwork)); in TaoBNKComputeStep() 438 PetscCall(VecGetSubVector(bnk->Gwork, bnk->inactive_idx, &bnk->G_inactive)); in TaoBNKComputeStep() 483 PetscCall(VecRestoreSubVector(bnk->Gwork, bnk->inactive_idx, &bnk->G_inactive)); in TaoBNKComputeStep() 532 PetscCall(VecGetSubVector(bnk->Gwork, bnk->inactive_idx, &bnk->G_inactive)); in TaoBNKRecomputePred() 536 bnk->G_inactive = bnk->Gwork; in TaoBNKRecomputePred() 546 PetscCall(VecRestoreSubVector(bnk->Gwork, bnk->inactive_idx, &bnk->G_inactive)); in TaoBNKRecomputePred() 991 if (!bnk->Gwork) PetscCall(VecDuplicate(tao->solution, &bnk->Gwork)); in TaoSetUp_BNK() 1049 PetscCall(VecDestroy(&bnk->Gwork)); in TaoDestroy_BNK()
|
| H A D | bnk.h | 24 Vec W, Xwork, Gwork, Xold, Gold; member
|