Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

output of gfortran compiler vs ifort compiler

$
0
0

This is my code and the name of the file is comp.f:

      program comp

      complex    :: x

      x=(6.3,1.0)

      print*,x

      end program comp

If I compile it with ifort "ifort comp.f", when I run it "./a.out", this is the output:

(6.300000,1.000000)

If I compile it with gfortran "gfortran comp.f", when I run it "./a.out", this is the output:

 (  6.30000019    ,  1.00000000    )

I need an "ifort"like output. Because I am working in some remote computer, I am forced to use gfortran. But the output is problematic because afterwards I need to read in the output in "Wolfram Mathematica"...so,

Is there anyway that I can get the output I would get with ifort, but using gfortran?


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>