Lines Matching refs:inactive_work
168 PetscCall(VecGetSubVector(bnk->Xwork, bnk->inactive_idx, &bnk->inactive_work)); in TaoBNKInitialize()
171 bnk->inactive_work = bnk->Xwork; in TaoBNKInitialize()
173 PetscCall(MatMult(bnk->H_inactive, bnk->X_inactive, bnk->inactive_work)); in TaoBNKInitialize()
174 PetscCall(VecDot(bnk->X_inactive, bnk->inactive_work, &prered)); in TaoBNKInitialize()
177 PetscCall(VecRestoreSubVector(bnk->Xwork, bnk->inactive_idx, &bnk->inactive_work)); in TaoBNKInitialize()
531 PetscCall(VecGetSubVector(bnk->Xwork, bnk->inactive_idx, &bnk->inactive_work)); in TaoBNKRecomputePred()
535 bnk->inactive_work = bnk->Xwork; in TaoBNKRecomputePred()
539 PetscCall(MatMult(bnk->H_inactive, bnk->X_inactive, bnk->inactive_work)); in TaoBNKRecomputePred()
540 PetscCall(VecAYPX(bnk->inactive_work, -0.5, bnk->G_inactive)); in TaoBNKRecomputePred()
541 PetscCall(VecDot(bnk->inactive_work, bnk->X_inactive, prered)); in TaoBNKRecomputePred()
545 PetscCall(VecRestoreSubVector(bnk->Xwork, bnk->inactive_idx, &bnk->inactive_work)); in TaoBNKRecomputePred()
1027 bnk->inactive_work = NULL; in TaoSetUp_BNK()