Issue 41 in f2py: compiler dependent output

73 views
Skip to first unread message

f2...@googlecode.com

unread,
Apr 14, 2015, 11:42:47 AM4/14/15
to f2py-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 41 by davor.ho...@gmail.com: compiler dependent output
https://code.google.com/p/f2py/issues/detail?id=41

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.


Attachments:
cmplxTest.zip 1.7 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages