Home
last modified time | relevance | path

Searched refs:exactError (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ts/utils/
H A Dtsconvest.c28 PetscErrorCode (*exactError)(TS, Vec, Vec); in PetscConvEstComputeErrorTS_Private() local
31 PetscCall(TSGetComputeExactError(ts, &exactError)); in PetscConvEstComputeErrorTS_Private()
32 if (exactError) { in PetscConvEstComputeErrorTS_Private()
/petsc/src/snes/tutorials/
H A Dex27.c654 Vec fluxError, exactError; /* Element wise error vector */ in main() local
734 PetscCall(DMGetGlobalVector(dmErr, &exactError)); in main()
735 PetscCall(PetscObjectSetName((PetscObject)exactError, "Analytical Error")); in main()
744 PetscCall(DMPlexComputeL2DiffVec(mdm, 0.0, func, ctx, mu, exactError)); in main()
747 PetscCall(VecNorm(exactError, NORM_2, &exactNorm)); in main()
750 PetscCall(VecViewFromOptions(exactError, NULL, "-exact_error_vec_view")); in main()
787 PetscCall(DMRestoreGlobalVector(dmErr, &exactError)); in main()
/petsc/src/ts/interface/
H A Dts.c3709 PetscErrorCode TSGetComputeExactError(TS ts, PetscErrorCode (**exactError)(TS ts, Vec u, Vec e)) in TSGetComputeExactError()
3713 PetscAssertPointer(exactError, 2); in TSGetComputeExactError()
3714 *exactError = ts->ops->exacterror; in TSGetComputeExactError()
3736 PetscErrorCode TSSetComputeExactError(TS ts, PetscErrorCode (*exactError)(TS ts, Vec u, Vec e)) in TSSetComputeExactError()
3740 PetscValidFunction(exactError, 2); in TSSetComputeExactError()
3741 ts->ops->exacterror = exactError; in TSSetComputeExactError()