From jzyang@ccad.uiowa.edu  Fri May 19 17:03:14 2000
From: jzyang@ccad.uiowa.edu (Jingzhou Yang)
Date: Fri, 19 May 2000 11:03:14 -0500
Subject: [Matrix-SIG] fortran and python
Message-ID: <392565C2.39A7E8B0@ccad.uiowa.edu>

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? 

Examples and reference books are better.

Thank you.

Wei Yu


From rogerha@ifi.uio.no  Fri May 19 17:36:20 2000
From: rogerha@ifi.uio.no (Roger Hansen)
Date: 19 May 2000 18:36:20 +0200
Subject: [Matrix-SIG] fortran and python
In-Reply-To: <392565C2.39A7E8B0@ccad.uiowa.edu>
References: <392565C2.39A7E8B0@ccad.uiowa.edu>
Message-ID: <ya0snvezed7.fsf@midgard.ifi.uio.no>

* 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