7 Sep 2008 7 Sep '08
Robert Cimrman wrote:
how about f2c to turn dft.f into dft.c you just need f2c.h.
I just edited the .f file, moved the integer declaration to above the "data" statement and ran f2c.
gcc -o dft.so --shared -fPIC dft.c created the .so file.
shroedinger.py still seems to work.
Have you run 'shroedinger.py --dft'? Otherwise the dft module was not used at all.
Cool. Ondrej was just about to convert it to C manually. We will remove completely all fortran deps ASAP.
I have just commited a changeset using the dft.c file. It works, but it needs to link /usr/lib/libf2c.a and requires f2c.h to build correctly. So this is a temporary workaround, until we have proper hand-written dft.c (easy!).
Anyway, fortran is gone.