Lines Matching refs:pert
94 bnk->pert = bnk->sval; in TaoBNKInitialize()
417 if (shift && bnk->pert > 0) { in TaoBNKComputeStep()
420 PetscCall(MatShift(tao->hessian, bnk->pert)); in TaoBNKComputeStep()
422 PetscCall(MatShift(bnk->H_inactive, bnk->pert)); in TaoBNKComputeStep()
423 if (bnk->H_inactive != bnk->Hpre_inactive) PetscCall(MatShift(bnk->Hpre_inactive, bnk->pert)); in TaoBNKComputeStep()
570 if (bnk->pert <= 0.0) { in TaoBNKSafeguardStep()
574 bnk->pert = PetscMin(bnk->imax, PetscMax(bnk->imin, bnk->imfac * bnk->gnorm)); in TaoBNKSafeguardStep()
578 bnk->pert = PetscMax(bnk->pert, -e_min); in TaoBNKSafeguardStep()
582 bnk->pert = PetscMin(bnk->pmax, PetscMax(bnk->pgfac * bnk->pert, bnk->pmgfac * bnk->gnorm)); in TaoBNKSafeguardStep()
632 if (bnk->pert <= 0.0) { in TaoBNKSafeguardStep()
636 bnk->pert = PetscMin(bnk->imax, PetscMax(bnk->imin, bnk->imfac * bnk->gnorm)); in TaoBNKSafeguardStep()
640 bnk->pert = PetscMax(bnk->pert, -e_min); in TaoBNKSafeguardStep()
644 … bnk->pert = PetscMin(bnk->pmax, PetscMax(bnk->pgfac * bnk->pert, bnk->pmgfac * bnk->gnorm)); in TaoBNKSafeguardStep()
650 bnk->pert = PetscMin(bnk->psfac * bnk->pert, bnk->pmsfac * bnk->gnorm); in TaoBNKSafeguardStep()
651 if (bnk->pert < bnk->pmin) bnk->pert = 0.0; in TaoBNKSafeguardStep()
712 if (bnk->pert <= 0.0) { in TaoBNKPerformLineSearch()
716 bnk->pert = PetscMin(bnk->imax, PetscMax(bnk->imin, bnk->imfac * bnk->gnorm)); in TaoBNKPerformLineSearch()
720 bnk->pert = PetscMax(bnk->pert, -e_min); in TaoBNKPerformLineSearch()
724 bnk->pert = PetscMin(bnk->pmax, PetscMax(bnk->pgfac * bnk->pert, bnk->pmgfac * bnk->gnorm)); in TaoBNKPerformLineSearch()