[f2py] Basic question?
Andreas Kring
akring1729 at gmail.com
Wed Oct 3 21:54:08 EEST 2007
Hello,
I'm new to f2py and have a very basic question. Consider the follow
fortran90 file (called test.f90) and the following few lines of python.
---
subroutine add(x,y,z)
implicit none
integer::x,y,z
z=x+y
end subroutine add
---
$ f2py -c test.f90 -m test
>>> from routine import add
>>> a,b,c=1,2,7
>>> add(a,b,c)
>>> c
7
Why is c not equal to 3? Shouldn't this be the case when comparing to
the example in the Users Guide
(http://cens.ioc.ee/projects/f2py2e/usersguide/index.html#introduction)?
Kind regards
Andreas
More information about the f2py-users
mailing list