| /petsc/src/snes/impls/gs/ |
| H A D | snesgs.c | 54 gs->max_its = maxit; in SNESNGSSetTolerances() 88 if (maxit) *maxit = gs->max_its; in SNESNGSGetTolerances() 171 PetscInt sweeps, max_its = PETSC_CURRENT; in SNESSetFromOptions_NGS() local 183 …ax_it", "Maximum number of sweeps of GS to apply", "SNESComputeGS", gs->max_its, &max_its, &flg3)); in SNESSetFromOptions_NGS() 184 if (flg || flg1 || flg2 || flg3) PetscCall(SNESNGSSetTolerances(snes, atol, rtol, stol, max_its)); in SNESSetFromOptions_NGS() 262 for (i = 0; i < snes->max_its; i++) { in SNESSolve_NGS() 265 …if (normschedule == SNES_NORM_ALWAYS || ((i == snes->max_its - 1) && (normschedule == SNES_NORM_IN… in SNESSolve_NGS() 335 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_NGS() 342 gs->max_its = 50; in SNESCreate_NGS()
|
| H A D | gsimpl.h | 8 PetscInt max_its; /* maximum iterations of the inner pointblock solver */ member
|
| /petsc/src/ksp/ksp/impls/cg/gltr/ |
| H A D | gltr.c | 894 PetscInt max_its; in KSPCGSetUp_GLTR() local 898 max_its = ksp->max_it + cg->max_lanczos_its + 1; in KSPCGSetUp_GLTR() 904 PetscCall(PetscArrayzero(cg->diag, max_its)); in KSPCGSetUp_GLTR() 905 PetscCall(PetscArrayzero(cg->offd, max_its)); in KSPCGSetUp_GLTR() 906 PetscCall(PetscArrayzero(cg->alpha, max_its)); in KSPCGSetUp_GLTR() 907 PetscCall(PetscArrayzero(cg->beta, max_its)); in KSPCGSetUp_GLTR() 908 PetscCall(PetscArrayzero(cg->norm_r, max_its)); in KSPCGSetUp_GLTR() 910 …PetscCall(PetscCalloc5(max_its, &cg->diag, max_its, &cg->offd, max_its, &cg->alpha, max_its, &cg->… in KSPCGSetUp_GLTR()
|
| /petsc/src/snes/impls/richardson/ |
| H A D | snesrichardson.c | 38 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_NRichardson() 186 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_NRichardson()
|
| /petsc/src/snes/impls/al/ |
| H A D | al.c | 309 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_NEWTONAL() 323 snes->max_its = maxits * maxincs; in SNESSolve_NEWTONAL() 518 snes->max_its = maxits; /* reset snes->max_its */ in SNESSolve_NEWTONAL() 633 PetscObjectParameterSetDefault(snes, max_its, 50); in SNESCreate_NEWTONAL()
|
| /petsc/src/snes/linesearch/impls/basic/ |
| H A D | linesearchbasic.c | 31 if (linesearch->norms || snes->iter < snes->max_its - 1) { in SNESLineSearchApply_Basic()
|
| /petsc/src/snes/impls/ngmres/ |
| H A D | anderson.c | 93 for (k = 1; k < snes->max_its + 1; k++) { in SNESSolve_Anderson() 221 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_Anderson()
|
| H A D | snesngmres.c | 208 for (k = 1; k < snes->max_its + 1; k++) { in SNESSolve_NGMRES() 514 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_NGMRES()
|
| /petsc/include/petsc/private/ |
| H A D | snesimpl.h | 112 PetscObjectParameterDeclare(PetscInt, max_its); /* max number of iterations */ 525 …(((iter) == (snes)->max_its && ((snes)->normschedule == SNES_NORM_FINAL_ONLY || (snes)->normschedu…
|
| /petsc/src/snes/impls/ncg/ |
| H A D | snesncg.c | 193 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_NCG() 394 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_NCG()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_snes.py | 468 ls.setTolerances(rtol=0.125, atol=3, minstep=4, ltol=5, maxstep=6, max_its=7) 469 minstep, maxstep, rtol, atol, ltol, max_its = ls.getTolerances() 475 self.assertEqual(max_its, 7)
|
| /petsc/src/snes/impls/ms/ |
| H A D | ms.c | 342 for (i = 0; i < snes->max_its; i++) { in SNESSolve_MS() 355 …if (i < snes->max_its - 1 || SNESNeedNorm_Private(snes, i + 1)) PetscCall(SNESComputeFunction(snes… in SNESSolve_MS()
|
| /petsc/src/snes/impls/fas/ |
| H A D | fas.c | 754 if (fas->level != 1) next->max_its += 1; in SNESFASCycle_Full() 761 if (fas->level != 1) next->max_its -= 1; in SNESFASCycle_Full() 865 for (i = 0; i < snes->max_its; i++) { in SNESSolve_FAS() 951 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_FAS()
|
| /petsc/src/snes/impls/nasm/ |
| H A D | nasm.c | 743 …dule == SNES_NORM_INITIAL_ONLY || normschedule == SNES_NORM_INITIAL_FINAL_ONLY || !snes->max_its) { in SNESSolve_NASM() 771 for (i = 0; i < snes->max_its; i++) { in SNESSolve_NASM() 773 …if (normschedule == SNES_NORM_ALWAYS || ((i == snes->max_its - 1) && (normschedule == SNES_NORM_IN… in SNESSolve_NASM() 874 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_NASM()
|
| /petsc/src/snes/interface/ |
| H A D | snes.c | 422 … maximum iterations=%" PetscInt_FMT ", maximum function evaluations=unlimited\n", snes->max_its)); in SNESView() 424 …PetscInt_FMT ", maximum function evaluations=%" PetscInt_FMT "\n", snes->max_its, snes->max_funcs)… in SNESView() 962 PetscInt i, indx, lag, grids, max_its, max_funcs; in SNESSetFromOptions() local 986 max_its = snes->max_its; in SNESSetFromOptions() 991 …ionsInt("-snes_max_it", "Maximum iterations", "SNESSetTolerances", snes->max_its, &max_its, NULL)); in SNESSetFromOptions() 993 PetscCall(SNESSetTolerances(snes, abstol, rtol, stol, max_its, max_funcs)); in SNESSetFromOptions() 1792 PetscObjectParameterSetDefault(snes, max_its, 50); in SNESParametersInitialize() 3959 snes->max_its = snes->default_max_its; in SNESSetTolerances() 3961 snes->max_its = PETSC_INT_MAX; in SNESSetTolerances() 3964 snes->max_its = maxit; in SNESSetTolerances() [all …]
|
| H A D | snesut.c | 813 } else if (it == snes->max_its) { in SNESConvergedSkip()
|
| /petsc/src/snes/impls/patch/ |
| H A D | snespatch.c | 288 for (its = 0; its < snes->max_its; its++) { in SNESSolve_Patch() 322 if (its == snes->max_its) PetscCall(SNESSetConvergedReason(snes, SNES_DIVERGED_MAX_IT)); in SNESSolve_Patch()
|
| /petsc/src/snes/impls/qn/ |
| H A D | qn.c | 124 for (i = 0, i_r = 0; i < snes->max_its; i++, i_r++) { in SNESSolve_QN() 531 PetscObjectParameterSetDefault(snes, max_its, 10000); in SNESCreate_QN()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex19.c | 375 PetscInt max_its, tot_its; in NonlinearGS() local 397 PetscCall(SNESNGSGetTolerances(snes, &rtol, &atol, &stol, &max_its)); in NonlinearGS() 507 for (l = 0; l < max_its && !ptconverged; l++) { in NonlinearGS()
|
| /petsc/src/snes/impls/ls/ |
| H A D | ls.c | 145 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_NEWTONLS()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | SNES.pyx | 2848 max_its : int 2856 cdef PetscInt max_its=0 2857 …CHKERR(SNESLineSearchGetTolerances(self.snesls, &minstep, &maxstep, &rtol, &atol, <ol, &max_its)) 2858 …return (toReal(minstep), toReal(maxstep), toReal(rtol), toReal(atol), toReal(ltol), toInt(max_its)) 2860 …oat | None = None, atol: float | None = None, ltol: float | None = None, max_its: int | None = Non… 2877 max_its : int, optional 2895 if max_its is not None: cmaxits = asInt(max_its)
|
| /petsc/src/snes/impls/composite/ |
| H A D | snescomposite.c | 735 for (i = 0; i < snes->max_its; i++) { in SNESSolve_Composite() 755 …if ((i == snes->max_its - 1) && (normtype == SNES_NORM_INITIAL_FINAL_ONLY || normtype == SNES_NORM… in SNESSolve_Composite()
|
| /petsc/src/snes/impls/vi/ss/ |
| H A D | viss.c | 217 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_VINEWTONSSLS()
|
| /petsc/doc/changes/ |
| H A D | 33.md | 114 - Changed default max_its and max_funcs for non-newton SNES solvers
|
| /petsc/src/snes/impls/ntrdc/ |
| H A D | ntrdc.c | 315 maxits = snes->max_its; /* maximum number of iterations */ in SNESSolve_NEWTONTRDC()
|