Skip to content

Meaning of Function.assign(scalar) #3245

Discussion options

You must be logged in to vote

.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)

Replies: 3 comments 7 replies

Comment options

jrmaddison
Nov 20, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jrmaddison
Comment options

jrmaddison Nov 20, 2023
Collaborator Author

Comment options

You must be logged in to vote
6 replies
@jrmaddison
Comment options

jrmaddison Nov 22, 2023
Collaborator Author

@wence-
Comment options

@jrmaddison
Comment options

jrmaddison Nov 22, 2023
Collaborator Author

@wence-
Comment options

@wence-
Comment options

Answer selected by jrmaddison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants