Searched refs:pert (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/tao/unconstrained/impls/nls/ |
| H A D | nls.c | 49 PetscReal f, fold, gdx, gnorm, pert; in TaoSolve_NLS() local 66 pert = nlsP->sval; in TaoSolve_NLS() 264 if (pert > 0) { in TaoSolve_NLS() 265 PetscCall(MatShift(tao->hessian, pert)); in TaoSolve_NLS() 266 if (tao->hessian != tao->hessian_pre) PetscCall(MatShift(tao->hessian_pre, pert)); in TaoSolve_NLS() 348 if (pert <= 0.0) { in TaoSolve_NLS() 350 pert = PetscMin(nlsP->imax, PetscMax(nlsP->imin, nlsP->imfac * gnorm)); in TaoSolve_NLS() 353 pert = PetscMax(pert, -e_min); in TaoSolve_NLS() 357 pert = PetscMin(nlsP->pmax, PetscMax(nlsP->pgfac * pert, nlsP->pmgfac * gnorm)); in TaoSolve_NLS() 410 if (pert <= 0.0) { in TaoSolve_NLS() [all …]
|
| /petsc/src/tao/bound/impls/bnk/ |
| H A D | bnk.c | 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() [all …]
|
| H A D | bnk.h | 83 PetscReal pert; /* Current perturbation value */ member
|
| /petsc/src/ksp/ksp/impls/cg/gltr/ |
| H A D | gltr.c | 74 PetscReal norm_t, norm_w, pert; in KSPCGSolve_GLTR() 670 pert = cg->init_pert; in KSPCGSolve_GLTR() 671 if (e_valu[0] < 0.0) cg->lambda = pert - e_valu[0]; in KSPCGSolve_GLTR() 683 pert += pert; in KSPCGSolve_GLTR() 684 cg->lambda = cg->lambda * (1.0 + pert) + pert; in KSPCGSolve_GLTR()
|