-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: Fix multiple modules in F2PY and COMMON handling #27695
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
Conversation
@2sn could you confirm that this patch works? You can test by checking out this PR and setting up |
@HaoZeke Thank you very much for the fix! I installed using
Yes, it is including the
but it is accessible, and returns
This may not be new behaviour (I do not recall having tried this before), but is a bit curious, and might be confusing. Before allocating
and after allocating (
|
Awesome, thanks for the quick confirmation. That is kind of odd. I see its because allocatable arrays get proxied into a dimension helper This shouldn't be new behavior, but it is definitely worth reporting (and fixing). |
@HaoZeke should we merge this as a fix to |
Yup this fixes the |
Thanks @HaoZeke. It might be nice to backport this, and it probably deserves a mention in the release notes |
Closes #27622. The issue stemmed from #25186 which was patched in #25361, #26156, and #25337 but really the original change should have been scoped better.
Essentially:
f2py
wrappers when modules and subroutines are present #25361common
blocks are presentThis simplification (and additional test) ensures backwards compatibility.