Searched refs:errorL2 (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/snes/tutorials/ |
| H A D | ex13.c | 381 Vec errorEst, errorL2, uErr, uErrLoc, uAdjLoc, uAdjProj; in ComputeAdjoint() local 393 PetscCall(DMGetGlobalVector(dmErr, &errorL2)); in ComputeAdjoint() 444 PetscCall(DMPlexComputeL2DiffVec(dm, 0.0, funcs, ctxs, u, errorL2)); in ComputeAdjoint() 445 PetscCall(VecViewFromOptions(errorL2, NULL, "-l2_error_view")); in ComputeAdjoint() 446 PetscCall(VecNorm(errorL2, NORM_INFINITY, &errorL2Tot)); in ComputeAdjoint() 449 PetscCall(VecPointwiseDivide(errorEst, errorEst, errorL2)); in ComputeAdjoint() 454 PetscCall(DMRestoreGlobalVector(dmErr, &errorL2)); in ComputeAdjoint()
|