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

subroutine argument real to integer conversion

$
0
0

Hey,

I am migrating a legacy HP UX f90 program to a Linux Intel ifort program.  There is a call to a subroutine where one of the actual arguments is an integer array output from the subroutine but the subroutine dummy argument is a real array.  This works fine on the legacy unix program but does not work when I try it on Linux. It compiles and runs but when the code later tries to use a value from this integer array, the value is wrong which ultimately causes an error found during a check. I tried to find a compiler option to allow this conversion to work with ifort but I had no luck.  Is there such an option?  Thanks!

Sub call where the loc array is of type integer.

        call ntran(idr(ilt),2,4096,loc(1,1,1,1,ilt),lerr,22)

Sub declaration where the ARRAY array is of type real and dynamically sized in ntran.  Array is populated in ntran and passed back to the calling program.

      SUBROUTINE NTRAN(IU,IOP,NW,ARRAY,LERR,IWAIT)                            

 


Viewing all articles
Browse latest Browse all 3270

Latest Images

Trending Articles



Latest Images

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