[Numpy-discussion] How does Python treat commons in fortran code?

Christopher Barker Chris.Barker@noaa....
Wed Oct 10 16:25:57 CDT 2007

Guillem Borrell i Nogueras wrote:
¿How does ctypes or f2py handle the _common_ structures
> present in fortran 77?

I think that's covered (for f2py) by this:


   ¿Are all they allocated at load? ¿Do they work
> exactly as they were called from a fortran executable and the main program is 
> aware of all the _commons_ and allocates the storage when it is asked for?

I'm pretty sure that's the case.

> He has been programming for more than 40 years and I could not get him much 
> into object oriented programing, however he found python+numpy+scipy a very 
> promising tool.

Good news -- you could save a lot of time by using FORTRAN only for what 
it's good for: the number crunching.


Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception


More information about the Numpy-discussion mailing list