Back to Finite Element (MFEM)
mfem.gridfunction.computeMaxError
Computes the maximum (L-infinity) error between a grid function and
Syntax
mfem.gridfunction.computeMaxError(gf, coeffPtr)
Description
Computes the maximum (L-infinity) error between a grid function and an exact solution represented as a coefficient. The max error is defined as: ||u - u_exact||_L∞ = max_x |u(x) - u_exact(x)| This is useful for checking pointwise accuracy of a solution.
Parameters
| Name | Description |
|---|---|
| gf | - The grid function (numerical solution) |
| coeffPtr | - Pointer to a Coefficient representing the exact solution |
Returns
number