Skip to content

Are INTERFACE blocks possible with f2py? #42

@mauimuc

Description

@mauimuc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions