Lines Matching refs:gnorm

1724   PetscReal   gnorm;  in TaoMonitorDefaultShort()  local
1730 gnorm = tao->residual; in TaoMonitorDefaultShort()
1738 if (gnorm >= PETSC_INFINITY) { in TaoMonitorDefaultShort()
1740 } else if (gnorm > 1.e-6) { in TaoMonitorDefaultShort()
1741 PetscCall(PetscViewerASCIIPrintf(viewer, " Residual: %g \n", (double)gnorm)); in TaoMonitorDefaultShort()
1742 } else if (gnorm > 1.e-11) { in TaoMonitorDefaultShort()
2013 PetscReal gnorm = tao->residual, gnorm0 = tao->gnorm0; in TaoDefaultConvergenceTest() local
2030 } else if (gnorm <= gatol && cnorm <= catol) { in TaoDefaultConvergenceTest()
2031 …PetscCall(PetscInfo(tao, "Converged due to residual norm ||g(X)||=%g < %g\n", (double)gnorm, (doub… in TaoDefaultConvergenceTest()
2033 } else if (f != 0 && PetscAbsReal(gnorm / f) <= grtol && cnorm <= crtol) { in TaoDefaultConvergenceTest()
2034 …PetscCall(PetscInfo(tao, "Converged due to residual ||g(X)||/|f(X)| =%g < %g\n", (double)(gnorm / … in TaoDefaultConvergenceTest()
2036 …} else if (gnorm0 != 0 && ((gttol == 0 && gnorm == 0) || gnorm / gnorm0 < gttol) && cnorm <= crtol… in TaoDefaultConvergenceTest()
2037 …d due to relative residual norm ||g(X)||/||g(X0)|| = %g < %g\n", (double)(gnorm / gnorm0), (double… in TaoDefaultConvergenceTest()
2464 PetscErrorCode TaoGetSolutionStatus(Tao tao, PetscInt *its, PetscReal *f, PetscReal *gnorm, PetscRe… in TaoGetSolutionStatus() argument
2470 if (gnorm) *gnorm = tao->residual; in TaoGetSolutionStatus()
2778 PetscErrorCode TaoGradientNorm(Tao tao, Vec gradient, NormType type, PetscReal *gnorm) in TaoGradientNorm() argument
2784 PetscAssertPointer(gnorm, 4); in TaoGradientNorm()
2791 *gnorm = PetscRealPart(PetscSqrtScalar(gnorms)); in TaoGradientNorm()
2793 PetscCall(VecNorm(gradient, type, gnorm)); in TaoGradientNorm()