DG VectorFunctionSpace
Hello -- I seem to get different answers when I project a discontinuous vector function component by component or using the vector DG function space. I expected the difference to be machine precision. What could I be doing wrongly? Thanks, --Jay
from dolfin import *
degree=1
n=10
mesh = UnitSquare(n,n)
Q = Expression(
VDG = VectorFunctionS
DG = FunctionSpace(mesh, "DG", degree)
q = project(Q, VDG, degree)
qx = project(Q[0], DG, degree)
qy = project(Q[1], DG, degree)
print 'q and (qx,qy) differs by: %e, %e' % \
( sqrt(abs(assemble( dot(q[0]
n = FacetNormal(mesh)
print 'jump(q)=%e, jump(qx)=%e, jump(qy)=%e' %\
( sqrt(abs(assemble( jump(q,
Output:
q and (qx,qy) differs by: 5.215406e-08, 3.885747e-07
jump(q)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by JG
Can you help with this problem?
Provide an answer of your own, or ask JG for more information if necessary.