Lines Matching refs:grtol

94   PetscObjectParameterSetDefault(tao, grtol, PetscDefined(USE_REAL_SINGLE) ? 1e-5 : 1e-8);  in TaoParametersInitialize()
438 PetscReal catol, crtol, gatol, grtol, gttol; in TaoSetFromOptions() local
470 grtol = tao->grtol; in TaoSetFromOptions()
473 …adient divided by the function value is less than", "TaoSetTolerances", tao->grtol, &grtol, NULL)); in TaoSetFromOptions()
475 PetscCall(TaoSetTolerances(tao, gatol, grtol, gttol)); in TaoSetFromOptions()
651 PetscCall(PetscViewerASCIIPrintf(viewer, " grtol=%g,", (double)tao->grtol)); in TaoView()
854 PetscErrorCode TaoSetTolerances(Tao tao, PetscReal gatol, PetscReal grtol, PetscReal gttol) in TaoSetTolerances() argument
859 PetscValidLogicalCollectiveReal(tao, grtol, 3); in TaoSetTolerances()
869 if (grtol == (PetscReal)PETSC_DETERMINE) { in TaoSetTolerances()
870 tao->grtol = tao->default_grtol; in TaoSetTolerances()
871 } else if (grtol != (PetscReal)PETSC_CURRENT) { in TaoSetTolerances()
872 …PetscCheck(grtol >= 0, PetscObjectComm((PetscObject)tao), PETSC_ERR_ARG_OUTOFRANGE, "Negative grto… in TaoSetTolerances()
873 tao->grtol = grtol; in TaoSetTolerances()
1261 PetscErrorCode TaoGetTolerances(Tao tao, PetscReal *gatol, PetscReal *grtol, PetscReal *gttol) in TaoGetTolerances() argument
1266 if (grtol) *grtol = tao->grtol; in TaoGetTolerances()
2015 PetscReal gatol = tao->gatol, grtol = tao->grtol, gttol = tao->gttol; in TaoDefaultConvergenceTest() local
2033 } else if (f != 0 && PetscAbsReal(gnorm / f) <= grtol && cnorm <= crtol) { in TaoDefaultConvergenceTest()
2034 …(tao, "Converged due to residual ||g(X)||/|f(X)| =%g < %g\n", (double)(gnorm / f), (double)grtol)); in TaoDefaultConvergenceTest()