discretize.tests.OrderTest.getError#
- OrderTest.getError()[source]#
Compute error defined as a norm of the residual.
This method is overwritten within the test class of a particular operator. Within the method, we define a test function
, the analytic solution of an operator acting on the test function, and the numerical approximation obtained by applying the discretized operator . getError is defined to return the norm of the residual as shown below: