Skip to content

BUG: Fix f2py bugs when wrapping F90 subroutines.#18354

Merged
charris merged 7 commits intonumpy:maintenance/1.20.xfrom
charris:backport-18184
Feb 7, 2021
Merged

BUG: Fix f2py bugs when wrapping F90 subroutines.#18354
charris merged 7 commits intonumpy:maintenance/1.20.xfrom
charris:backport-18184

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Feb 7, 2021

Backport of #18184.

This PR fixes the following bugs:

  • Fortran sources in fixed format were incorrectly detected as free format sources
  • f2py specific modules (with names containing __user__) must not be used in Fortran sources to be compiled
  • Subroutines/functions using assumed shape array inputs were incorrectly treated as F77 codes. Closes f2py: assumed shape array arguments break callback functionality #17797
  • Avoid splitting long comment lines

The PR supersedes #17800

@charris charris added this to the 1.20.1 release milestone Feb 7, 2021
@charris charris changed the title Backport 18184 BUG: Fix f2py bugs when wrapping F90 subroutines. Feb 7, 2021
@charris charris merged commit b66f57a into numpy:maintenance/1.20.x Feb 7, 2021
@charris charris deleted the backport-18184 branch February 7, 2021 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants