Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

fpconstant issue

Adrian_F_1
Beginner
3,324 Views

I always use /fpconstant to save having to append d0 to all my constants.  As far I was aware this has always worked.  But now it works for one constant but not another.

      program ww
      implicit none
      real*8 :: KTOFShift      = -459.67
      real*8 :: KTOFFact       = 1.8
      write(6,*) KTOFShift
      write(6,*) KTOFFact
      end

gives:

ifort  ww.f90
ww
  -459.670013427734
   1.79999995231628

ifort  ww.f90 /fpconstant
ww
  -459.670013427734
   1.80000000000000

ie. the second constant gets doubled, but not the first.  Why?

0 Kudos
24 Replies
Les_Neilson
Valued Contributor II
790 Views

Make sure you have "http://" at the beginning of the url

I clicked on the original link with ftp:// at the start and it showed a page of html code.

Changing ftp: to http: gave me the proper page with links to zip files.

Beware - I downloaded the "zip" file and when I tried to open it, it was empty / invalid

I downloaded the tar.gz and that was ok

http://ftp.math.utah.edu/pub/misc/index.html#dtosstod

 

Hope this helps

Les

0 Kudos
Adrian_F_1
Beginner
790 Views

Aah great thanks Les, that worked.

Adrian

0 Kudos
mecej4
Honored Contributor III
790 Views

I think that the problems with Adrian's accessing FTP sites may be related to his firewall settings, as explained at http://smallbusiness.chron.com/use-passive-ftp-google-chrome-49772.html .

0 Kudos
Steven_L_Intel1
Employee
790 Views

The compiler bug has been fixed. I am unsure if the fix will appear in the initial 16.0 release, but if not, then the first update.

0 Kudos
Reply