Home
last modified time | relevance | path

Searched refs:bnorm (Results 1 – 5 of 5) sorted by relevance

/petsc/src/ksp/ksp/tutorials/
H A Dex5.c23 PetscReal norm, bnorm; /* norm of solution error */ in main() local
214 PetscCall(VecNorm(b, NORM_2, &bnorm)); in main()
216bnorm > 1.e-5)) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Relative norm of the residual %g, Iterati… in main()
344bnorm > PETSC_SMALL)) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "Relative norm of the residual %g, I… in main()
H A Dex5f.F9015 PetscReal :: norm, bnorm ! norm of solution residual
202 PetscCallA(VecNorm(b, NORM_2, bnorm, ierr))
205 if (.not. testscaledMat .or. norm/bnorm > PETSC_SMALL) then
206 …write (outputString, '(a,f11.9,a,i2.2,a)') 'Relative norm of residual ', norm/bnorm, ', Iterations…
337 PetscCallA(VecNorm(b, NORM_2, bnorm, ierr))
339 if (.not. testscaledMat .or. norm/bnorm > PETSC_SMALL) then
340 …write (outputString, '(a,f11.9,a,i2.2,a)') 'Relative norm of residual ', norm/bnorm, ', Iterations…
/petsc/src/tao/leastsquares/impls/pounders/
H A Dgqt.c220 …PetscReal alpha, anorm, bnorm, parc, parf, parl, pars, par = *retpar, paru, prod, rxnorm, rznor… in gqt() local
251 PetscCallBLAS("BLASnrm2", bnorm = BLASnrm2_(&blasn, b, &blas1)); in gqt()
262 parl = PetscMax(bnorm / delta - parl, pars); in gqt()
264 paru = PetscMax(0.0, bnorm / delta + paru); in gqt()
/petsc/src/ksp/ksp/tests/
H A Dex21.c7 PetscReal bnorm; in MatNormDifference() local
11 PetscCall(MatNorm(B, NORM_FROBENIUS, &bnorm)); in MatNormDifference()
15 *norm = *norm / bnorm; in MatNormDifference()
/petsc/src/ksp/ksp/interface/
H A Diterativ.c394 PetscReal truenorm, bnorm; in KSPMonitorTrueResidual() local
407 PetscCall(VecNorm(ksp->vec_rhs, NORM_2, &bnorm)); in KSPMonitorTrueResidual()
413 if (bnorm == 0) { in KSPMonitorTrueResidual()
416 …(i)||/||b|| %14.12e\n", n, normtype, (double)rnorm, (double)truenorm, (double)(truenorm / bnorm))); in KSPMonitorTrueResidual()
578 PetscReal truenorm, bnorm; in KSPMonitorTrueResidualMax() local
591 PetscCall(VecNorm(ksp->vec_rhs, NORM_INFINITY, &bnorm)); in KSPMonitorTrueResidualMax()
597 …orm %14.12e ||r(i)||/||b|| %14.12e\n", n, normtype, (double)truenorm, (double)(truenorm / bnorm))); in KSPMonitorTrueResidualMax()