Searched refs:xnorms (Results 1 – 4 of 4) sorted by relevance
| /petsc/src/snes/impls/ngmres/ |
| H A D | snesngmres.h | 20 PetscReal *xnorms; /* the solution norm history */ member
|
| H A D | ngmresfunc.c | 142 PetscCall(VecNormBegin(D, NORM_2, &ngmres->xnorms[i])); in SNESNGMRESNorms_Private() 154 PetscCall(VecNormEnd(D, NORM_2, &ngmres->xnorms[i])); in SNESNGMRESNorms_Private() 155 dcurnorm = ngmres->xnorms[i]; in SNESNGMRESNorms_Private()
|
| H A D | snesngmres.c | 26 PetscCall(PetscFree3(ngmres->xnorms, ngmres->fnorms, ngmres->s)); in SNESDestroy_NGMRES() 63 PetscCall(PetscMalloc3(msize, &ngmres->xnorms, msize, &ngmres->fnorms, msize, &ngmres->s)); in SNESSetUp_NGMRES()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex18.c | 857 PetscReal *xnorms; in MonitorFunctionals() local 867 PetscCall(PetscCalloc1(Nf * 2, &xnorms)); in MonitorFunctionals() 877 …for (d = 0; d < dof - cdof; ++d) xnorms[f * 2 + 0] = PetscMax(xnorms[f * 2 + 0], PetscAbsScalar(a[… in MonitorFunctionals() 878 for (d = 0; d < dof - cdof; ++d) xnorms[f * 2 + 1] += PetscAbsScalar(a[d]); in MonitorFunctionals() 1000 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)ts), "%8.4g", (double)xnorms[f * 2 + 0])); in MonitorFunctionals() 1005 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)ts), "%8.4g", (double)xnorms[f * 2 + 1])); in MonitorFunctionals() 1010 PetscCall(PetscFree(xnorms)); in MonitorFunctionals()
|