external functions and f2py
Thierry Cornelis
thierry.cornelis at easynet.be
Thu Oct 31 06:26:08 EST 2002
Chris Fonnesbeck wrote:
> I am trying to get a piece of FORTRAN code (downhill simplex
> algorithm) to run in python using f2py. This code requires an
> external function used in optimization, which I would like to provide
> in python. It is, of course, declared in fortran with the following:
>
> external funk
>
> I assumed that all I would need to do is add the following for f2py to
> work:
>
> cf2py external funk
>
> However, after compiling, trying to import the module returns an error
> (even after defining funk in python):
>
> ImportError: ./simplex.so: undefined symbol: funk_
>
> Can anyone point me in the right direction?
have a look at:
http://moncs.cs.mcgill.ca/people/slacoste/research/report/SummerReport.html
groeten,
thierry
More information about the Python-list
mailing list