python - Excluding a call to a subroutine from a commercial library -
i have fortran file lot of useful subroutines, , want create python interface using f2py.
the problem arises because fortran subroutines phone call fft subroutine nag library (named c06ebf). when imported python, produces 'undefined symbol: co6ebf' warning.
is there other way perform fft within fortran subroutine , able create python interface using f2py?
this problem solved in next way:
all instances commercial fft library called replaced calls free fft library (in case fftw3). of course of study ' include "fftw3.f" ' placed on top of fortran subroutines necessary.
extension module created using f2py. first line creates signature file, , in sec line extension module compiled. note linked external library in process - not done previously, caused stated problems.
f2py -m splib -h splib.fpy splib.f f2py -c splib splib.f -lfftw3
python fortran f2py
No comments:
Post a Comment