[Matrix-SIG] fortran and python

Roger Hansen rogerha@ifi.uio.no
19 May 2000 18:36:20 +0200


* Jingzhou Yang
> 
> I am beginner of using python. I have some fortran 
> subroutines. Now I want to call these subroutines 
> in python. Could you give me some suggestions on
> how to do that? 

Try to use f2py  <Url: http://cens.ioc.ee/projects/f2py2e/ >
or Pyfort, which can be downloaded at 
<Url: http://dubois.simplenet.com/python/ >

Both packages simplifies the process of wrapping your fortran
subroutines so that you can call them in python.

> Examples and reference books are better.

There are some examples in the tutorials.


HTH,
Roger