Skip to content
Discussion options

You must be logged in to vote

A.dat.data are the coefficients w.r.t. the basis which for DQ indeed corresponds to values in nodes at physical locations, it's just not the physical locations you are expecting. The default choice of nodes in Firedrake for discontinuous elements correspond to the Gauss Legendre points, which does not include the vertices. If you want the more "standard" choice of nodes that includes the vertices, with equispaced notes inbetween for higher order, use:

ele = FiniteElement("DQ", mesh.ufl_cell(), 1, variant='equispaced')
space = FunctionSpace(mesh, ele)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tu1620808124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants