-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors with firedrake.vector.Vector methods and mixed elements #1276
Comments
This is a mixed space, a mixed space is a bag of function spaces, I suppose that's why you have tuples. Observe what I guess what you want to do is: |
It is an ongoing issue that the vector api is not compatible with dolfin. |
Can't we just allocate mixed Dats as a continuous array, and then slice and reshape sections for individual Dats? |
"Just" is a stretch, but something like that could be done. Or, given that I think the vector API operates on assembled objects, one could just expose the |
The assign method would probably suffice, but there are use cases where it is desirable to modify the vector directly -- the axpy (now corrected) is probably a better example. |
FWIW,
if you like. I realise this doesn't help for compatibility purposes. |
Attempting to update Vectors directly leads to errors when mixed elements are used. For example:
Either the assignment or the axpy leads to an error, e.g.
The text was updated successfully, but these errors were encountered: