Home
last modified time | relevance | path

Searched refs:abstol (Results 1 – 25 of 46) sorted by relevance

12

/petsc/src/mat/utils/
H A Dzerodiag.c58 PetscErrorCode MatReorderForNonzeroDiagonal(Mat mat, PetscReal abstol, IS ris, IS cis) in MatReorderForNonzeroDiagonal() argument
61 …PetscTryMethod(mat, "MatReorderForNonzeroDiagonal_C", (Mat, PetscReal, IS, IS), (mat, abstol, ris,… in MatReorderForNonzeroDiagonal()
70 PETSC_INTERN PetscErrorCode MatReorderForNonzeroDiagonal_SeqAIJ(Mat mat, PetscReal abstol, IS ris, … in MatReorderForNonzeroDiagonal_SeqAIJ() argument
90 if (k >= nz || PetscAbsScalar(v[k]) <= abstol) { in MatReorderForNonzeroDiagonal_SeqAIJ()
116 if (icol[jj[kk]] == prow && PetscAbsScalar(vv[kk]) > abstol) { in MatReorderForNonzeroDiagonal_SeqAIJ()
133 if (icol[jj[kk]] == prow && PetscAbsScalar(vv[kk]) > abstol) { in MatReorderForNonzeroDiagonal_SeqAIJ()
/petsc/src/snes/impls/gs/
H A Dsnesgs.c33 PetscErrorCode SNESNGSSetTolerances(SNES snes, PetscReal abstol, PetscReal rtol, PetscReal stol, Pe… in SNESNGSSetTolerances() argument
40 if (abstol != (PetscReal)PETSC_CURRENT) { in SNESNGSSetTolerances()
41 …scCheck(abstol >= 0.0, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_OUTOFRANGE, "Absolute tol… in SNESNGSSetTolerances()
42 gs->abstol = abstol; in SNESNGSSetTolerances()
85 if (atol) *atol = gs->abstol; in SNESNGSGetTolerances()
180 …_atol", "Absolute residual tolerance for GS iteration", "SNESComputeGS", gs->abstol, &atol, &flg)); in SNESSetFromOptions_NGS()
340 gs->abstol = PETSC_MACHINE_EPSILON; in SNESCreate_NGS()
H A Dgsimpl.h10 PetscReal abstol; /* absolute tolerance of the inner pointblock solver */ member
/petsc/src/ksp/ksp/impls/gmres/fgmres/
H A Dmodpcf.c76 PetscReal rtol, abstol, dtol; in KSPFlexibleModifyPCKSP() local
91 PetscCall(KSPGetTolerances(sub_ksp, &rtol, &abstol, &dtol, &maxits)); in KSPFlexibleModifyPCKSP()
94 PetscCall(KSPSetTolerances(sub_ksp, rtol, abstol, dtol, maxits)); in KSPFlexibleModifyPCKSP()
/petsc/src/ts/impls/implicit/sundials/
H A Dsundials.h39 PetscReal abstol; /* only for using SS flag in SUNDIALS */ member
H A Dsundials.c348 PetscCallExternal(CVodeSStolerances, cvode->mem, cvode->reltol, cvode->abstol); in TSSetUp_Sundials()
395 …solute tolerance for convergence", "TSSundialsSetTolerance", cvode->abstol, &cvode->abstol, NULL)); in TSSetFromOptions_Sundials()
432 …erASCIIPrintf(viewer, "SUNDIALS abs tol %g rel tol %g\n", (double)cvode->abstol, (double)cvode->re… in TSView_Sundials()
523 if (aabs != PETSC_DECIDE) cvode->abstol = aabs; in TSSundialsSetTolerance_Sundials()
919 cvode->abstol = 1e-6; in TSCreate_Sundials()
/petsc/src/snes/tutorials/
H A Dex2.c41 PetscReal abstol, rtol, stol, norm; in main() local
123 PetscCall(SNESGetTolerances(snes, &abstol, &rtol, &stol, &maxit, &maxf)); in main()
124 …%g, stol=%g, maxit=%" PetscInt_FMT ", maxf=%" PetscInt_FMT "\n", (double)abstol, (double)rtol, (do… in main()
H A Dex3k.kokkos.cxx228 PetscReal abstol, rtol, stol, norm; in main() local
291 PetscCall(SNESGetTolerances(snes, &abstol, &rtol, &stol, &maxit, &maxf)); in main()
292 …%g, stol=%g, maxit=%" PetscInt_FMT ", maxf=%" PetscInt_FMT "\n", (double)abstol, (double)rtol, (do… in main()
H A Dex3.c87 PetscReal abstol, rtol, stol, norm; in main() local
227 PetscCall(SNESGetTolerances(snes, &abstol, &rtol, &stol, &maxit, &maxf)); in main()
228 …%g, stol=%g, maxit=%" PetscInt_FMT ", maxf=%" PetscInt_FMT "\n", (double)abstol, (double)rtol, (do… in main()
/petsc/src/snes/tests/
H A Dex5.c31 PetscReal abstol, rtol, stol, norm; in main() local
124 PetscCall(SNESGetTolerances(snes, &abstol, &rtol, &stol, &maxit, &maxf)); in main()
125 …%g, stol=%g, maxit=%" PetscInt_FMT ", maxf=%" PetscInt_FMT "\n", (double)abstol, (double)rtol, (do… in main()
/petsc/src/snes/impls/fas/
H A Dfasfunc.c113 …PetscCall(SNESSetTolerances(fas->next, fas->next->abstol, fas->next->rtol, fas->next->stol, fas->n… in SNESFASSetLevels()
212 …if (fas->smoothu) PetscCall(SNESSetTolerances(fas->smoothu, fas->smoothu->abstol, fas->smoothu->rt… in SNESFASSetNumberSmoothUp()
242 …PetscCall(SNESSetTolerances(fas->smoothd, fas->smoothd->abstol, fas->smoothd->rtol, fas->smoothd->… in SNESFASSetNumberSmoothDown()
283 …PetscCall(SNESSetTolerances(fas->smoothu, fas->fine->abstol, fas->fine->rtol, fas->fine->stol, 50,… in SNESFASSetContinuation()
316 …if (!isFine) PetscCall(SNESSetTolerances(snes, snes->abstol, snes->rtol, snes->stol, cycles, snes-… in SNESFASSetCycles()
439 …PetscCall(SNESSetTolerances(nsmooth, nsmooth->abstol, nsmooth->rtol, nsmooth->stol, nsmooth->max_i… in SNESFASCycleCreateSmoother_Private()
477 PetscCall(SNESSetTolerances(snes, snes->abstol, snes->rtol, snes->stol, cycles, snes->max_funcs)); in SNESFASCycleSetCycles()
/petsc/src/ksp/ksp/interface/
H A Ditcl.c346 PetscReal rtol, abstol, divtol; in KSPSetFromOptions() local
417 abstol = ksp->abstol; in KSPSetFromOptions()
421 …l("-ksp_atol", "Absolute value of residual norm", "KSPSetTolerances", ksp->abstol, &abstol, NULL)); in KSPSetFromOptions()
424 PetscCall(KSPSetTolerances(ksp, rtol, abstol, divtol, max_it)); in KSPSetFromOptions()
H A Ditfunc.c1641 PetscErrorCode KSPGetTolerances(KSP ksp, PeOp PetscReal *rtol, PeOp PetscReal *abstol, PeOp PetscRe… in KSPGetTolerances() argument
1645 if (abstol) *abstol = ksp->abstol; in KSPGetTolerances()
1693 PetscErrorCode KSPSetTolerances(KSP ksp, PetscReal rtol, PetscReal abstol, PetscReal dtol, PetscInt… in KSPSetTolerances() argument
1698 PetscValidLogicalCollectiveReal(ksp, abstol, 3); in KSPSetTolerances()
1708 if (abstol == (PetscReal)PETSC_DETERMINE) { in KSPSetTolerances()
1709 ksp->abstol = ksp->default_abstol; in KSPSetTolerances()
1710 } else if (abstol != (PetscReal)PETSC_CURRENT) { in KSPSetTolerances()
1711 …scCheck(abstol >= 0.0, PetscObjectComm((PetscObject)ksp), PETSC_ERR_ARG_OUTOFRANGE, "Absolute tole… in KSPSetTolerances()
1712 ksp->abstol = abstol; in KSPSetTolerances()
H A Ditcreate.c138 …ative=%g, absolute=%g, divergence=%g\n", (double)ksp->rtol, (double)ksp->abstol, (double)ksp->divt… in KSPView()
751 ksp->default_abstol = ksp->abstol = PetscDefined(USE_REAL_SINGLE) ? 1.e-25 : 1.e-50; in KSPCreate()
/petsc/src/tao/tutorials/
H A Dex4.c22 PetscReal abstol; member
118 ctx->abstol = 1.e-4; in ConfigureContext()
142 …Real("-abstol", "Absolute stopping criterion for ADMM", "ex4.c", ctx->abstol, &ctx->abstol, NULL)); in ConfigureContext()
531 primal = PetscSqrtReal(ctx->n) * ctx->abstol + ctx->reltol * PetscMax(x_norm, z_norm); in TaoSolveADMM()
534 dual = PetscSqrtReal(ctx->n) * ctx->abstol + ctx->reltol * u_norm * mu; in TaoSolveADMM()
/petsc/src/mat/tests/
H A Dex120.c19 PetscReal vl, vu, abstol = 1.e-8; in main() local
163 …LAPACKsyevx_("V", "I", "U", &bn, arrayA, &bn, &vl, &vu, &il, &iu, &abstol, &nevs, evals, evecs_arr… in main()
192 …LAPACKsygvx_(&one, "V", "I", "U", &bn, arrayA, &bn, arrayB, &bn, &vl, &vu, &il, &iu, &abstol, &nev… in main()
H A Dex116.c27 PetscReal vl, vu, abstol = 1.e-8; in main() local
90 …LAPACKsyevx_("V", "I", "U", &bn, arrayA, &bn, &vl, &vu, &il, &iu, &abstol, &nevs, evals, evecs_arr… in main()
/petsc/src/ksp/ksp/impls/lsqr/
H A Dlsqr.c598 if (lsqr->arnorm < ksp->rtol * ksp->rnorm0 + ksp->abstol * lsqr->anorm * xnorm) { in KSPLSQRConvergedDefault()
600 …ouble)lsqr->arnorm, (double)ksp->rtol, (double)ksp->rnorm0, (double)ksp->abstol, lsqr->exact_norm … in KSPLSQRConvergedDefault()
602 } else if (lsqr->arnorm < ksp->abstol * lsqr->anorm * rnorm) { in KSPLSQRConvergedDefault()
604 …(double)ksp->abstol, lsqr->exact_norm ? "exact" : "approx.", (double)lsqr->anorm, (double)rnorm, n… in KSPLSQRConvergedDefault()
/petsc/src/ksp/pc/impls/shell/ftn-custom/
H A Dzshellpcf.c64 …ourapplyrichardson(PC pc, Vec x, Vec y, Vec w, PetscReal rtol, PetscReal abstol, PetscReal dtol, P… in ourapplyrichardson() argument
66 …)(((PetscObject)pc)->fortran_func_pointers[2]))(&pc, &x, &y, &w, &rtol, &abstol, &dtol, &m, &guess… in ourapplyrichardson()
/petsc/include/petsc/private/
H A Dpcmgimpl.h72 …PetscReal rtol, abstol, dtol, ttol; /* tolerances for when running with PCApplyRichardson_MG … member
/petsc/src/ksp/pc/impls/mg/
H A Dmgfunc.c591 PetscReal rtol, abstol, dtol; in PCMGGetSmootherUp() local
596 PetscCall(KSPGetTolerances(mglevels[l]->smoothd, &rtol, &abstol, &dtol, &maxits)); in PCMGGetSmootherUp()
607 PetscCall(KSPSetTolerances(mglevels[l]->smoothu, rtol, abstol, dtol, maxits)); in PCMGGetSmootherUp()
H A Dmg.c54 if (rnorm < mg->abstol) { in PCMGMCycle_Private()
56 …erged. Residual norm %g is less than absolute tolerance %g\n", (double)rnorm, (double)mg->abstol)); in PCMGMCycle_Private()
124 …ApplyRichardson_MG(PC pc, Vec b, Vec x, Vec w, PetscReal rtol, PetscReal abstol, PetscReal dtol, P… in PCApplyRichardson_MG() argument
161 mg->abstol = abstol; in PCApplyRichardson_MG()
173 mg->ttol = PetscMax(rtol * rnorm, abstol); in PCApplyRichardson_MG()
174 } else if (abstol) mg->ttol = abstol; in PCApplyRichardson_MG()
442 mg->abstol = 0.0; in PCMGSetLevels_MG()
/petsc/src/snes/interface/
H A Dsnes.c426 …ative=%g, absolute=%g, solution=%g\n", (double)snes->rtol, (double)snes->abstol, (double)snes->sto… in SNESView()
969 PetscReal rtol, abstol, stol; in SNESSetFromOptions() local
983 abstol = snes->abstol; in SNESSetFromOptions()
989 …-snes_atol", "Stop if function norm less than", "SNESSetTolerances", snes->abstol, &abstol, NULL)); in SNESSetFromOptions()
993 PetscCall(SNESSetTolerances(snes, abstol, rtol, stol, max_its, max_funcs)); in SNESSetFromOptions()
1795 PetscObjectParameterSetDefault(snes, abstol, PetscDefined(USE_REAL_SINGLE) ? 1.e-25 : 1.e-50); in SNESParametersInitialize()
3927 PetscErrorCode SNESSetTolerances(SNES snes, PetscReal abstol, PetscReal rtol, PetscReal stol, Petsc… in SNESSetTolerances() argument
3931 PetscValidLogicalCollectiveReal(snes, abstol, 2); in SNESSetTolerances()
3937 if (abstol == (PetscReal)PETSC_DETERMINE) { in SNESSetTolerances()
3938 snes->abstol = snes->default_abstol; in SNESSetTolerances()
[all …]
/petsc/src/ksp/pc/impls/shell/
H A Dshellpc.c231 …lyRichardson_Shell(PC pc, Vec x, Vec y, Vec w, PetscReal rtol, PetscReal abstol, PetscReal dtol, P… in PCApplyRichardson_Shell() argument
239 …PetscCallBack("PCSHELL callback applyrichardson", (*shell->applyrich)(pc, x, y, w, rtol, abstol, d… in PCApplyRichardson_Shell()
869 …ErrorCode (*apply)(PC pc, Vec b, Vec x, Vec r, PetscReal rtol, PetscReal abstol, PetscReal dtol, P… in PCShellSetApplyRichardson() argument
/petsc/src/ksp/pc/tests/
H A Dex5.c220 PetscErrorCode gauss_seidel(PC pc, Vec bb, Vec xx, Vec w, PetscReal rtol, PetscReal abstol, PetscRe… in gauss_seidel() argument
245 PetscErrorCode jacobi_smoother(PC pc, Vec bb, Vec xx, Vec w, PetscReal rtol, PetscReal abstol, Pets… in jacobi_smoother() argument

12