Lines Matching refs:X_inactive
167 PetscCall(VecGetSubVector(bnk->W, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKInitialize()
170 bnk->X_inactive = bnk->W; 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()
176 PetscCall(VecRestoreSubVector(bnk->W, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKInitialize()
439 PetscCall(VecGetSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKComputeStep()
442 bnk->X_inactive = tao->stepdirection; in TaoBNKComputeStep()
445 PetscCall(KSPSolve(tao->ksp, bnk->G_inactive, bnk->X_inactive)); in TaoBNKComputeStep()
471 PetscCall(KSPSolve(tao->ksp, bnk->G_inactive, bnk->X_inactive)); in TaoBNKComputeStep()
484 PetscCall(VecRestoreSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKComputeStep()
530 PetscCall(VecGetSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKRecomputePred()
534 bnk->X_inactive = tao->stepdirection; in TaoBNKRecomputePred()
539 PetscCall(MatMult(bnk->H_inactive, bnk->X_inactive, bnk->inactive_work)); in TaoBNKRecomputePred()
541 PetscCall(VecDot(bnk->inactive_work, bnk->X_inactive, prered)); in TaoBNKRecomputePred()
544 PetscCall(VecRestoreSubVector(tao->stepdirection, bnk->inactive_idx, &bnk->X_inactive)); in TaoBNKRecomputePred()
1025 bnk->X_inactive = NULL; in TaoSetUp_BNK()