| /petsc/src/snes/impls/tr/ |
| H A D | tr.c | 751 if (rho < neP->eta2) delta *= neP->t1; /* shrink the region */ in SNESSolve_NEWTONTR() 848 …ionsReal("-snes_tr_eta2", "eta2", "SNESNewtonTRSetUpdateParameters", ctx->eta2, &ctx->eta2, NULL)); in SNESSetFromOptions_NEWTONTR() 882 …(viewer, " eta1=%g, eta2=%g, eta3=%g\n", (double)tr->eta1, (double)tr->eta2, (double)tr->eta3)); in SNESView_NEWTONTR() 1021 PetscErrorCode SNESNewtonTRSetUpdateParameters(SNES snes, PetscReal eta1, PetscReal eta2, PetscReal… in SNESNewtonTRSetUpdateParameters() argument 1028 PetscValidLogicalCollectiveReal(snes, eta2, 3); in SNESNewtonTRSetUpdateParameters() 1037 if (eta2 == PETSC_DETERMINE) eta2 = tr->default_eta2; in SNESNewtonTRSetUpdateParameters() 1042 if (eta2 != PETSC_CURRENT) tr->eta2 = eta2; in SNESNewtonTRSetUpdateParameters() 1069 PetscErrorCode SNESNewtonTRGetUpdateParameters(SNES snes, PetscReal *eta1, PetscReal *eta2, PetscRe… in SNESNewtonTRGetUpdateParameters() argument 1077 if (eta2) PetscAssertPointer(eta2, 3); in SNESNewtonTRGetUpdateParameters() 1085 if (eta2) *eta2 = tr->eta2; in SNESNewtonTRGetUpdateParameters() [all …]
|
| H A D | trimpl.h | 30 PetscObjectParameterDeclare(PetscReal, eta2);
|
| /petsc/src/ksp/ksp/impls/bcgs/qmrcgs/ |
| H A D | qmrcgs.c | 18 PetscScalar eta, rho1, rho2, alpha, eta2, omega, beta, cf, cf1, uu; in KSPSolve_QMRCGS() local 116 eta2 = c * c * alpha; in KSPSolve_QMRCGS() 119 PetscCall(VecWAXPY(X2, eta2, D2, X)); /* x2 <- x + eta2 d2 */ in KSPSolve_QMRCGS() 179 cf1 = eta2 * theta2 * theta2 / omega; in KSPSolve_QMRCGS()
|
| /petsc/src/tao/bound/impls/tron/ |
| H A D | tron.h | 12 PetscReal eta1, eta2, eta3, eta4; member
|
| H A D | tron.c | 200 if (rhok < tron->eta2) { in TaoSolve_TRON() 332 tron->eta2 = 0.25; in TaoCreate_TRON()
|
| /petsc/src/snes/impls/ntrdc/ |
| H A D | ntrdcimpl.h | 22 PetscReal eta2; /* Heeho's new TR-dogleg */ member
|
| H A D | ntrdc.c | 489 if (rho < neP->eta2) { in SNESSolve_NEWTONTRDC() 601 PetscCall(PetscOptionsReal("-snes_trdc_eta2", "eta2", "None", ctx->eta2, &ctx->eta2, NULL)); in SNESSetFromOptions_NEWTONTRDC() 623 …tf(viewer, " eta1=%g, eta2=%g, eta3=%g\n", (double)tr->eta1, (double)tr->eta2, (double)tr->eta3)); in SNESView_NEWTONTRDC() 679 neP->eta2 = 0.25; in SNESCreate_NEWTONTRDC()
|
| /petsc/src/tao/unconstrained/impls/ntr/ |
| H A D | ntrimpl.h | 34 PetscReal eta2; /* used to compute trust-region radius */ member
|
| H A D | ntr.c | 319 if (kappa < tr->eta2) { in TaoSolve_NTR() 467 PetscCall(PetscOptionsReal("-tao_ntr_eta2", "", "", tr->eta2, &tr->eta2, NULL)); in TaoSetFromOptions_NTR() 556 tr->eta2 = 0.25; in TaoCreate_NTR()
|
| /petsc/src/tao/unconstrained/impls/ntl/ |
| H A D | ntlimpl.h | 60 PetscReal eta2; /* used to compute trust-region radius */ member
|
| H A D | ntl.c | 325 if (kappa < tl->eta2) { in TaoSolve_NTL() 643 …Real("-tao_ntl_eta2", "reasonable steplength; leave radius alone", "", tl->eta2, &tl->eta2, NULL)); in TaoSetFromOptions_NTL() 774 tl->eta2 = 0.25; in TaoCreate_NTL()
|
| /petsc/src/tao/unconstrained/impls/nls/ |
| H A D | nlsimpl.h | 104 PetscReal eta2; /* used to compute trust-region radius */ member
|
| H A D | nls.c | 586 } else if (kappa < nlsP->eta2) { in TaoSolve_NLS() 748 …("-tao_nls_eta2", "reasonable steplength; leave radius alone", "", nlsP->eta2, &nlsP->eta2, NULL)); in TaoSetFromOptions_NLS() 914 nlsP->eta2 = 0.25; in TaoCreate_NLS()
|
| /petsc/src/snes/tests/output/ |
| H A D | ex1_2c_snes_tr_qn-same.out | 5 eta1=0.001, eta2=0.25, eta3=0.75
|
| H A D | ex1_2c_snes_tr_qn-different.out | 5 eta1=0.001, eta2=0.25, eta3=0.75
|
| /petsc/src/snes/tutorials/output/ |
| H A D | ex2_4.out | 12 eta1=0.001, eta2=0.25, eta3=0.75
|
| H A D | ex2_2.out | 11 eta1=0.001, eta2=0.25, eta3=0.75
|
| H A D | ex18_3.out | 4 eta1=0.001, eta2=0.25, eta3=0.75
|
| H A D | ex18_2.out | 4 eta1=0.001, eta2=0.25, eta3=0.75
|
| /petsc/src/tao/bound/impls/bnk/ |
| H A D | bnk.h | 131 PetscReal eta2; /* used to compute trust-region radius */ member
|
| H A D | bnk.c | 858 if (kappa < bnk->eta2) { in TaoBNKUpdateTrustRadius() 1087 …d for accepting marginal step (-tao_bnk_update_type reduction)", "", bnk->eta2, &bnk->eta2, NULL)); in TaoSetFromOptions_BNK() 1281 bnk->eta2 = 0.25; in TaoCreate_BNK()
|
| /petsc/src/dm/impls/stag/tutorials/ |
| H A D | ex4.c | 30 PetscScalar eta1, eta2, rho1, rho2, gy, eta_characteristic; member 119 ctx->eta_characteristic = PetscMin(PetscRealPart(ctx->eta1), PetscRealPart(ctx->eta2)); in main() 336 return PetscRealPart(x) < (ctx->xmax - ctx->xmin) / 2.0 ? ctx->eta1 : ctx->eta2; in GetEta_layers() 354 return (xx * xx > 0.15 * 0.15 || yy * yy > 0.15 * 0.15) ? ctx->eta1 : ctx->eta2; in GetEta_sinker_box2() 374 …f_width || PetscAbsReal(yy) > half_width || PetscAbsReal(zz) > half_width) ? ctx->eta1 : ctx->eta2; in GetEta_sinker_box3() 394 return (xx * xx + yy * yy + zz * zz > half_width * half_width) ? ctx->eta1 : ctx->eta2; in GetEta_sinker_sphere3() 403 return ctx->eta1 + ctx->eta2 * PetscExpScalar(-20.0 * (xx * xx + yy * yy + zz * zz)); in GetEta_blob3() 472 ctx->eta2 = 1e2; in CtxCreateAndSetFromOptions() 481 ctx->eta2 = 1e22; in CtxCreateAndSetFromOptions() 492 ctx->eta2 = ctx->eta1; in CtxCreateAndSetFromOptions() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | SNES.pyx | 378 … eta1: float | None = None, eta2: float | None = None, eta3: float | None = None, 388 eta2 406 if eta2 is not None: ceta2 = asReal(eta2) 421 eta2 : float
|
| /petsc/doc/manual/ |
| H A D | tao.md | 1025 > | ``eta2`` | real | 0.25 | :math:`\eta_2` | 1378 > | ``eta2`` | real | 0.25 | :math:`\eta_2` |
|