Skip to content

compiler dependent output #41

Description

@GoogleCodeExporter
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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions