[f2py] Basic question? (without typo)
Andreas Kring
akring1729 at gmail.com
Wed Oct 3 21:56:28 EEST 2007
(sorry, this version should be correct).
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 test 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