Hello,
I have been experimenting FEniCS for a few days, and encountered an error in d6_p2D.py in FEniCS book. The error occurs right here,
Ve = FunctionSpace(mesh, 'Lagrange', degree=7)
u_e_Ve = interpolate(u_e, Ve)
error = (u - u_e_Ve)**2*dx
E3 = sqrt((assemble(error)))
^
It seems that when the mesh gets finer, assemble() function gives a negative value. Do you have any idea why this is happening?