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.
It appears to me f2py isn't treating INTERFACE blocks right. Try that code:
I am using f2py version 2.45.241 which comes with Ubuntu 14.04.