How to obtain coordinates of vertices of mesh? #4812
Answered
by
connorjward
Alpha-Legion
asked this question in
Firedrake support
-
|
I used But it gives me a function of shape (num_cells, 3). |
Beta Was this translation helpful? Give feedback.
Answered by
connorjward
Jan 9, 2026
Replies: 1 comment 3 replies
-
|
A DG0 function has a single DoF in the middle of each cell. A CG1 function would give you the result that you expect. Note that |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Alpha-Legion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A DG0 function has a single DoF in the middle of each cell. A CG1 function would give you the result that you expect. Note that
mesh.coordinatesis already such a function though so the interpolation isn't needed.