-
Notifications
You must be signed in to change notification settings - Fork 10
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
Change in return type of getField() function in PETSc version 3.22.1 #268
Comments
Yeah, I had a similar issue in #257. |
Apologies for the duplication! I assumed it was fixed. |
No worries, just close that one to follow on this. |
If this is purely in Petsc4py, then you should intercept the call in python with a branch on the version number. If it is in the C code that we have wrapped then look at the compatibility code we use. |
As discussed with Julian and in line with Louis' comment, I'll create a wrapper method for handling the behaviour depending on the petsc4py version number. |
Branch tested: development
PETSc version: 3.22.1
Python version: 3.12.7
Issue description:
Accessing the swarm fields using
getField()
no longer returns the field of interest as an array.Instead, it returns a tuple with the:
I think this change may have a lot of effects moving forward.
To test:
The text was updated successfully, but these errors were encountered: