[SciPy-user] f2py problem

10 views
Skip to first unread message

Dmitrey

unread,
May 30, 2009, 1:04:07 PM5/30/09
to SciPy Users List
Hi all,
I try to construct a Python wrapper around the fortran routine toms587,
you can download it here:
ftp://ftp.linux.kiev.ua/pub/projects/openopt/files/soft/toms587.f

So I invoke
f2py -c -m toms587 toms587.f

Then I try to run the code:

from toms587 import lsei
from numpy import *

W = array([8.94558004, 7.3286058, 3.0, 2.05011463, 0.43314039,
70.31767878, -12.29662251, -13.91359675, 75.74379415])
me,ma,mg,n,prgopt,xf,rnorme,rnorml,mode,ws,ip = 0, 3, 0, 2, ravel(1.),
ravel(0.), -15.0, -15.0, -15, ravel(-15.), array((-15, -15, -15))

lsei(W,me,ma,mg,n,prgopt,xf,rnorme,rnorml,mode,ws,ip)

StdErr: *** glibc detected *** /usr/bin/python: free(): invalid next
size (fast): 0x0000000000cfb390 ***
Any ideas?
I use KUBUNTU 9.04, AMD 3800+ X2.
Thank you in advance, D.
_______________________________________________
SciPy-user mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user

Reply all
Reply to author
Forward
0 new messages