Meaning of Function.assign(scalar)
#3245
-
I have previously read However I see e.g.
runs without error, suggesting that
Is this the intended behaviour, a bug, or am I using the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
For comparison with legacy FEniCS
displays (approx) one. Using |
Beta Was this translation helpful? Give feedback.
-
It’s really a question of whether it is necessary to anticipate every mistake the user makes and catch it with an error. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
.assign
does dof-wise assignment of linear combinations of things in "compatible" spaces. So this is working as intended. In almost all cases you want to use.interpolate
if you actually care about function spaces and the meaning of the value (if that is too slow, please open a bug)