A reimplementation of the Springer book: https://github.com/hplgit/fenics-tutorial/, covering new topics as well as transitioning from dolfin to dolfinx
Hi,
First, thank you very much for the dolfinx-tutorial. In the first line of the following code region:
error_max = numpy.max(numpy.abs(uD.x.array-uh.x.array))
# Only print the error on one process
if domain.comm.rank == 0:
print(f"Error_L2 : {error_L2:.2e}")
print(f"Error_max : {error_max:.2e}")
No, as uex is in a higher order function space, you cannot compare it dof by dof.
ud has the exact solution interpolated into the same space as uh, and is Therefore used for the Max error at vertices
Hi, First, thank you very much for the dolfinx-tutorial. In the first line of the following code region:
Should it be
uex
instead ofuD
, isn't it?