[SciPy-user] import/include in f2py
Ryan Krauss
ryanlists at gmail.com
Sat Apr 22 19:54:23 CDT 2006
If I have a user-defined function in a seperate .f or .so file, how do
I include that function in another fortran file for use with f2py?
i.e. if I define:
double complex function zcosh(z)
double complex z
zcosh = 0.5*(exp(z)+exp(-z))
RETURN
END
in mylib.f
and then I want to use it like this:
double complex function bode(s)
double complex s
double complex zsinh, zcosh
in bode(s) in otherfile.f, what line(s) do I need in otherfile.f to
make it find zcosh(z)?
I guess I am asking what is the fortran equivalent of include from c
or import in python?
I have looked in numerous fortran books and poked around in google,
but I am missing something here.
Thanks,
Ryan
More information about the SciPy-user
mailing list