Rank mismatch between Expression and FunctionSpace when using IntervalMesh #2576
Answered
by
ksagiyam
JunmingDuan
asked this question in
Firedrake support
-
Dear all, I tried to do interpolation on a 1D mesh: mesh = IntervalMesh(10, 1) it reported: "raise RuntimeError('Rank mismatch: Expression rank %d, FunctionSpace rank %d' Do you have any idea about this? |
Beta Was this translation helpful? Give feedback.
Answered by
ksagiyam
Oct 10, 2022
Replies: 1 comment 1 reply
-
You need |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JunmingDuan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need
x, = SpatialCoordinate(mesh)
(just as in 2D/3D).