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

Unable to get past problem in code

$
0
0

All,

I have been trying to compile a code handed over to me. I am using Visual Studio with the Intel Fortran 10.1.011 compiler. I created the project and included all the necessary files and everything else that was required and was able to get the program to build with no errors. When I go to compile it, the program pops up a console window and seems to be waiting for some input for ever. I have tried many things and nothing seems to be working. I am providing the part of the code where it seems to be having this issue below.

c    If CODE is being used "Standalone", read from unit 5 redirected input.

c    If CODE is being called from AutoTune, the description file name is 

c    passed in.

    if (IsMain) then

        lun_description = 5

        OPEN(   UNIT=lun_description,

     1            STATUS='OLD',

     1            READONLY,

     1            CARRIAGECONTROL='LIST')

    else

        OPEN(   UNIT=lun_description,

     1            FILE=DescFileName,

     1            STATUS='OLD',

     1            READONLY,

     1            CARRIAGECONTROL='LIST')

    endif

      READ(UNIT=lun_description, ERR=915, NML=OPER_INFO)

    rewind(lun_description)


 

Note that I have checked that in the project properties, I have provided the path to the location where the project file exists. Also, the input file that this program is supposed to read is provided in that folder. I have also provided the name of this file under "command line arguments". It almost seems like this "unit=5" is open somewhere and I am not able to find it nor understand what exactly FORTRAN is looking for. Can any of you gurus out there point me in the right direction?

Thanks

Max


Viewing all articles
Browse latest Browse all 3270

Trending Articles