Skip to content
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

Are INTERFACE blocks possible with f2py? #42

Open
mauimuc opened this issue Mar 14, 2016 · 0 comments
Open

Are INTERFACE blocks possible with f2py? #42

mauimuc opened this issue Mar 14, 2016 · 0 comments

Comments

@mauimuc
Copy link

mauimuc commented Mar 14, 2016

It appears to me f2py isn't treating INTERFACE blocks right. Try that code:

pure subroutine sub1(i, o)
  implicit none
  integer, intent(in) :: i
  integer, intent(out) :: o

  interface 
    pure subroutine sub2(i, o)
      integer, intent(in) :: i
      integer, intent(out) :: o
    end 
  end interface

  call sub2(i, o)

end 

pure subroutine sub2(i, o)
  implicit none
  integer, intent(in) :: i
  integer, intent(out) :: o

  o = 2*i

end 

I am using f2py version 2.45.241 which comes with Ubuntu 14.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant