||u||_0 = 1.12846688033
||Pi_u||_0 = 1.2624381173
being the output of:
from dolfin import *
mesh = UnitSquare(2, 2)
V_h = FunctionSpace(mesh, "RT", 0)
u = Function(V_h, ("pow(x[0],2)", "1.0"))
u.interpolate()
print "||u||_0 = ", norm(u)
W_h = VectorFunctionSpace(mesh, "DG", 1)
Pi_u = Function(W_h)
Pi_u.interpolate(u)
print "||Pi_u||_0 = ", norm(Pi_u)
(Tested both using tensor and quadrature representation.
Tensor and quad differ somewhat for the norm(u).
Is the quadrature default to integrate RTs using
"too low" a quadrature rule still?)
--
Marie
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev