This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Compute L2 and H1 errors by FeniCS(C++)

0 votes

The exact solution expression is at hand and the numerical solution had been got. Then, how to compute the L2 and H1 errors between them by FeniCS (C++)?

asked Jul 14, 2015 by Guodong Zhang FEniCS Novice (420 points)

1 Answer

0 votes

Have a look at how errornorm is implemented.

answered Jul 14, 2015 by Kent-Andre Mardal FEniCS Expert (14,380 points)
...