pearu / f2py

Automatically exported from code.google.com/p/f2py
Other
55 stars 39 forks source link

compiler dependent output #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Output is compiler dependent, ifort works, gfortran produces garbage
in case with external function (test2.f90). 

1) Intel Fortran Compiler ifort - linux

f2py -c --fcompiler=intelem  -m ffct ffct.f90 

f2py -c --fcompiler=intelem  -m test1 ffct.f90 test1.f90 

f2py -c --fcompiler=intelem  -m test2 ffct.f90 test2.f90

python test.py

Output:
(-8.23547535068e-06-1.08608608614e-05j)
(-8.23547535068e-06-1.08608608614e-05j)

2) gfortran - linux

f2py -c --fcompiler=gnu95 -m ffct ffct.f90 

f2py -c --fcompiler=gnu95  -m test1 ffct.f90 test1.f90 

f2py -c --fcompiler=gnu95  -m test2 ffct.f90 test2.f90

python test.py

Output:
(-8.23547535068e-06-1.08608608614e-05j)
(-0.000624818723635+2.1849065056e-319j) <- WRONG

What is the expected output? What do you see instead?

Described above. 

What version of the product are you using? On what operating system?

Version:     2
numpy Version: 1.8.2
Debian

Please provide any additional information below.

Original issue reported on code.google.com by davor.ho...@gmail.com on 14 Apr 2015 at 3:42

Attachments: