<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I don't see any guarantee in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948562#M91652</link>
    <description>&lt;P&gt;I don't see any guarantee that any of those switches for compatibility with old compilers&amp;nbsp;are necessarily relevant. &amp;nbsp;As far as I know, DEC-20 predated the abominations of fpscomp. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I've never seen the definition of /f66 for ifort, but typically such options set a minimum loop count of 1 for programs which depended on non-standard behavior in that respect. &amp;nbsp;That was not covered by f66 standard, although some popular compilers worked that way with default options.&lt;/P&gt;

&lt;P&gt;As others said, it makes no sense to combine those options with options dealing with later Fortran standards. &amp;nbsp;There's no way such an old program could have been written to foresee developments of 30 years later.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2013 13:39:00 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2013-12-30T13:39:00Z</dc:date>
    <item>
      <title>Problems of running fortran 66 program</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948556#M91646</link>
      <description>&lt;P&gt;I am a beginner of the Fortran,&amp;nbsp;I have a very old Fortran program which&amp;nbsp;is written in FORTRAN, and was designed and&amp;nbsp;implemented on&amp;nbsp;the DEC-20 of the University of Chicago Graduate School of Business (FORTRAN-20, version 5, an extension of ANSI FORTRAN-66). I used the visual studio 10 with intel fortran compiler 2013, 1.1.139. My system is window 7 64-bit.&amp;nbsp;&amp;lt;!--break--&amp;gt;&amp;nbsp;I set the property of the old program as following:&lt;/P&gt;

&lt;P&gt;/nologo /debug:full /Od /assume:buffered_io /Qopt-matmul- /f66 /d_lines /Qopenmp_stubs /standard-semantics /Qcoarray:shared /convert:ibm /fpscomp:filesfromcmd /fpscomp:ioformat /fpscomp:ldio_spacing /fpscomp:logicals /fpscomp:general /warn:interfaces /align:sequence /assume:dummy_aliases /Qsafe_cray_ptr /assume:noprotect_constants /assume:byterecl /Qtrapuv /module:"Debug\\" /object:"Debug\\" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c&lt;/P&gt;

&lt;P&gt;After I run with debug, there are error message, however I start without debugging. Errors occurred in cmd with following statements:&lt;/P&gt;

&lt;P&gt;forrtl: severe (47): write to READONLY file, unit 5, file CONIN$&lt;BR /&gt;
	In coarray image 1&lt;/P&gt;

&lt;P&gt;application called MPI_Abort(comm=0x84000000, 3) - process 0&lt;BR /&gt;
	forrtl: severe (47): write to READONLY file, unit 5, file CONIN$&lt;BR /&gt;
	In coarray image 3&lt;/P&gt;

&lt;P&gt;application called MPI_Abort(comm=0x84000000, 3) - process 2&lt;BR /&gt;
	forrtl: severe (47): write to READONLY file, unit 5, file CONIN$&lt;BR /&gt;
	In coarray image 2&lt;/P&gt;

&lt;P&gt;application called MPI_Abort(comm=0x84000000, 3) - process 1&lt;BR /&gt;
	forrtl: severe (47): write to READONLY file, unit 5, file CONIN$&lt;BR /&gt;
	In coarray image 4&lt;/P&gt;

&lt;P&gt;application called MPI_Abort(comm=0x84000000, 3) - process 3&lt;/P&gt;

&lt;P&gt;job aborted:&lt;BR /&gt;
	rank: node: exit code[: error message]&lt;BR /&gt;
	0: localhost: 3: process 0 exited without calling finalize&lt;BR /&gt;
	1: localhost: 3: process 1 exited without calling finalize&lt;BR /&gt;
	2: localhost: 3: process 2 exited without calling finalize&lt;BR /&gt;
	3: localhost: 3: process 3 exited without calling finalize&lt;BR /&gt;
	Press any key to continue . . .&lt;/P&gt;

&lt;P&gt;I think the problem is come from the input commands. There is a subroutine called OFILE, the original statements are&lt;/P&gt;

&lt;P&gt;SUBROUTINE OFILE(IO,FNAME,IAC)&lt;BR /&gt;
	DOUBLE PRECISION FNAME&lt;BR /&gt;
	IF(IAC.NE.0)GO TO 10&lt;BR /&gt;
	OPEN(UNIT=IO,FILE=FNAME,ACCESS='SEQIN')&lt;BR /&gt;
	RETURN&lt;BR /&gt;
	10 OPEN(UNIT=IO,DEVICE='DSK',ACCESS='SEQOUT',FILE=FNAME)&lt;BR /&gt;
	RETURN&lt;BR /&gt;
	END&lt;/P&gt;

&lt;P&gt;However, the intel fortran compiler doesn't support the ACCESS='SEQIN/SEQOUT' and DEVICE='DSK'. Therefore, I rewrote these subroutine as following:&lt;/P&gt;

&lt;P&gt;IF(IAC.NE.0)GO TO 10&lt;BR /&gt;
	OPEN(UNIT=IO,FILE=FNAME,ACCESS='SEQUENTIAL',STATUS='OLD',READONLY)&lt;BR /&gt;
	RETURN&lt;BR /&gt;
	10 OPEN(UNIT=IO,ACCESS='SEQUENTIAL',STATUS='UNKNOWN',FILE=FNAME)&lt;BR /&gt;
	RETURN&lt;BR /&gt;
	END&lt;/P&gt;

&lt;P&gt;I don't know whether it causes the problems as mentioned above. I can upload the fortran program if necessary. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 09:06:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948556#M91646</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-30T09:06:57Z</dc:date>
    </item>
    <item>
      <title>Did you intentionally want to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948557#M91647</link>
      <description>&lt;P&gt;Did you intentionally want to create a parallel program using co-arrays? &amp;nbsp;If you did that is trying to run&amp;nbsp;before you can walk... I would suggest removing that option and just getting the program to run in the first instance.&lt;/P&gt;

&lt;P&gt;It looks like&amp;nbsp;you have created &amp;nbsp;multiple threads &amp;nbsp;that are all trying to open the same file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 10:12:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948557#M91647</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-12-30T10:12:13Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help. This</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948558#M91648</link>
      <description>&lt;P&gt;Thank you for your help. This&amp;nbsp;program is not written by me, I think the main program&amp;nbsp;is correct, since it works before. I think I need to revise DEVICE='DSK' in Intel Fortran Compiler or I need other libraries to handle this problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 10:48:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948558#M91648</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-30T10:48:10Z</dc:date>
    </item>
    <item>
      <title>You have set compile options</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948559#M91649</link>
      <description>&lt;P&gt;You have set compile options using&amp;nbsp;openmp and coarray&amp;nbsp;to create a parallel program. If the&amp;nbsp;&amp;nbsp;program &amp;nbsp;is as old as you suggest it will not have been written this way. Remove the parallel options and recompile.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:11:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948559#M91649</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-12-30T11:11:21Z</dc:date>
    </item>
    <item>
      <title>I agree with app4619; remove</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948560#M91650</link>
      <description>&lt;P&gt;I agree with app4619; remove the /Qcoarray switch.&amp;nbsp;&amp;nbsp;&amp;nbsp; Also, remove the /standard-semantics switch.&amp;nbsp; While it is true that that switch was intended to address only Fortran 90/95/2003 features, it could easily have side-effects with&amp;nbsp;the /f66 support.&lt;/P&gt;

&lt;P&gt;All that said, you opened the file as READONLY.&amp;nbsp;&amp;nbsp; I assume there is another place where you are trying to write to it.&lt;/P&gt;

&lt;P&gt;You will be able to find that line of code when you remove the /Qcoarray switch, and simply run the program.&amp;nbsp; You already have /traceback set, so it will give you more information about *where* in your program you are trying to "write" to the input unit.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:56:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948560#M91650</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2013-12-30T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help. I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948561#M91651</link>
      <description>&lt;P&gt;Thank you for your help. I have remove these options, new the property is&lt;/P&gt;

&lt;P&gt;/nologo /debug:full /Od /assume:buffered_io /Qopt-matmul- /f66 /d_lines /Qopenmp_stubs /convert:ibm /fpscomp:filesfromcmd /fpscomp:ioformat /fpscomp:ldio_spacing /fpscomp:logicals /fpscomp:general /warn:interfaces /align:sequence /assume:dummy_aliases /Qsafe_cray_ptr /assume:noprotect_constants /assume:byterecl /Qtrapuv /module:"Debug\\" /object:"Debug\\" /traceback /check:bounds /check:stack /libs:dll /threads /dbglibs /c&lt;/P&gt;

&lt;P&gt;Then the error occurred:&lt;/P&gt;

&lt;P&gt;WARPS.exe has triggered a breakpoint&lt;BR /&gt;
	The program '[4708] WARPS.exe: Native' has exited with code 47 (0x2f).&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 13:36:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948561#M91651</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-30T13:36:47Z</dc:date>
    </item>
    <item>
      <title>I don't see any guarantee</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948562#M91652</link>
      <description>&lt;P&gt;I don't see any guarantee that any of those switches for compatibility with old compilers&amp;nbsp;are necessarily relevant. &amp;nbsp;As far as I know, DEC-20 predated the abominations of fpscomp. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I've never seen the definition of /f66 for ifort, but typically such options set a minimum loop count of 1 for programs which depended on non-standard behavior in that respect. &amp;nbsp;That was not covered by f66 standard, although some popular compilers worked that way with default options.&lt;/P&gt;

&lt;P&gt;As others said, it makes no sense to combine those options with options dealing with later Fortran standards. &amp;nbsp;There's no way such an old program could have been written to foresee developments of 30 years later.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 13:39:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948562#M91652</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-12-30T13:39:00Z</dc:date>
    </item>
    <item>
      <title>As far as I can see, /convert</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948563#M91653</link>
      <description>&lt;P&gt;As far as I can see, /convert pertains to reading unformatted files which were written on old computers. &amp;nbsp;If you have one from the DEC, vaxd is a much more likely possibility than ibm.&lt;/P&gt;

&lt;P&gt;When you have so many options which are meant to work with a debugger, you will probably need to run under the debugger to see what is happening.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 13:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948563#M91653</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-12-30T13:51:00Z</dc:date>
    </item>
    <item>
      <title>severe (47): Write to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948564#M91654</link>
      <description>&lt;P&gt;&lt;STRONG style="color: rgb(51, 51, 51); font-family: Helvetica, sans-serif; line-height: 15px;"&gt;severe (47): Write to READONLY file&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/lin/bldaps_for/common/bldaps_rterrs.htm"&gt;http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/lin/bldaps_for/common/bldaps_rterrs.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You are trying to write to the file opened for reading. You need to understand what the program is trying to do and follow it in the debugger. Is it a small program? You could post it on the forum perhaps?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:10:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948564#M91654</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-12-30T14:10:42Z</dc:date>
    </item>
    <item>
      <title>You told us already that you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948565#M91655</link>
      <description>&lt;P&gt;You told us already that you changed an OPEN from default read/write to READONLY. &amp;nbsp;By the way, OPEN was not in Fortran 66, so it seems that someone already modified the program to run with Fortran 77.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 14:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948565#M91655</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-12-30T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help. The</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948566#M91656</link>
      <description>&lt;P&gt;Thank you for your help. The program contains many subroutines which I don't really understand. Kindly see the attached file and give me some comments. The data.txt should be the input file, I have tried to save it as .dat file, but it still doesn't work.&amp;nbsp;With best regards, Tony&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:07:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948566#M91656</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-30T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Try to find the spot in the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948567#M91657</link>
      <description>&lt;P&gt;Try to find the spot in the code where IO is set. From the error is appears to be set to 5,&amp;nbsp;that is the default input device.&lt;/P&gt;

&lt;P&gt;writing to that device will generate an error.&lt;/P&gt;

&lt;P&gt;Change that value from 5 to any number but not 0, 5 or 6. (try 11)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;Jan Jaap&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:23:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948567#M91657</guid>
      <dc:creator>Jan_Jaap</dc:creator>
      <dc:date>2013-12-30T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Look at line 370.  Change the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948568#M91658</link>
      <description>&lt;P&gt;Look at line 370.&amp;nbsp; Change the second "5" to a "6", and that will get you past the initial failure.&lt;/P&gt;

&lt;P&gt;That said, you'll have to step through the program in the debugger enough to figure out what it wants; I got as far as it asking for "Model Order", and I have no idea what the correct response is.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 16:14:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948568#M91658</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2013-12-30T16:14:37Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948569#M91659</link>
      <description>&lt;P&gt;Thank you for your help. After I enter "Model of Order" as "1", "Drift Parameter" as "N", "Discontinuity" as "N", "How many explanatory variables" as "1" and "Number of Data Points" as 72. Errors occurred:&amp;nbsp;The program '[2392] WARPS.exe: Native' has exited with code 47 (0x2f).&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;VARIABLES INDEXED 1 THROUGH &amp;nbsp;3&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;forrtl: severe (47): write to READONLY file, unit 5, file CONIN$&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I think the problems are in the subroutine&amp;nbsp;"RDATA".&lt;/P&gt;

&lt;P&gt;With best regards,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 18:01:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948569#M91659</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-30T18:01:08Z</dc:date>
    </item>
    <item>
      <title>This is ancient Fortran code</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948570#M91660</link>
      <description>&lt;P&gt;This is ancient Fortran code doing all manner of awful things with data that sort of worked in&amp;nbsp;a by gone age on long dead computers, such as storing character data as (35bit???!!!! yes I meant 35)&amp;nbsp;real numbers (Fortran 66 did not have character variables). Large swathes of this code would disappear if it were coded today.&lt;/P&gt;

&lt;P&gt;Do you need to use this code? What does it do? There are many sources of much more 'free' routines that would do the sort of stuff discussed in the program header....&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 18:24:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948570#M91660</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2013-12-30T18:24:21Z</dc:date>
    </item>
    <item>
      <title>Just took a look/see at the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948571#M91661</link>
      <description>&lt;P&gt;Just took a look/see at the code. it has some Fortran-66 and/or previous development environment issues, however once you clean it up a bit it should work/run fine on INTEL Fortran. I've moved many programs, thousands of lines of code from Fortran-66 forward and there are only a few issues and then you will be good to go.&lt;/P&gt;

&lt;P&gt;the program appears to be well documented so you should be able to figure out what they are doing. and yes, back in the day character data was stored in read (4 characters per Real*4 variable) and using equivalences you can still do it (to get running) and then perhaps update some of the older items.&lt;/P&gt;

&lt;P&gt;first recommendation i'd have is: understand what the program is trying to accomplish, and see if there a better/easier solution available? Spline fitting and Regression Analysis are available free all over the web. also some 'for fee' books/code like Numerical Recipies, whcih will also help you understand Fortran code. (they have an old school version and a Fortran 90 version) and many free math libraries.&lt;/P&gt;

&lt;P&gt;Note it also appears to use Hollerith data and that's i believe no longer supported, but no sweat! simply go to those character variables and enclose them in quotes rather than using Hollerith.&amp;nbsp; So 4HTHIS simply becomes 'THIS'&lt;/P&gt;

&lt;P&gt;i believe there are a number of good writeups on the web about moving code from ANSI-66 to modern day Fortran code. I'd get up to speed on them. And don't be one of the lemmings moving all your code to C++, there is no point. It's a waste of time since you can easily link with C++ code if parts would be better accomplished with C++.&lt;/P&gt;

&lt;P&gt;I'd suggest you do the minimum changes required to get up and running.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2013 19:55:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948571#M91661</guid>
      <dc:creator>bmchenry</dc:creator>
      <dc:date>2013-12-30T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help. I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948572#M91662</link>
      <description>&lt;P&gt;Thank you for your help. I don't really want to change the code. Do you have any libraries to&amp;nbsp;suggest me for compiling this program? Or any website can help me to rewrite the subroutine "OFILE", "RFLIE", and "RDATA".&lt;/P&gt;

&lt;P&gt;With best regards,&lt;/P&gt;

&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 04:07:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948572#M91662</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-31T04:07:22Z</dc:date>
    </item>
    <item>
      <title>Tony,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948573#M91663</link>
      <description>&lt;P&gt;Tony,&lt;/P&gt;

&lt;P&gt;You have many things to change to get this program to run and probably more changes to make it run well. From the first example you have posted I can see that:&lt;/P&gt;

&lt;P&gt;DOUBLE PRECISION FNAME : this indicates that FNAME is being used as an 8-byte character variable, as Fortran 66 did not have characters. You would be best advised to convert all character use to CHARACTER variables. (You need to check which F66 compiler was used to confirm how many characters were stored in a DOUBLE PRECISION variable). The most significant change from F66 to now is the introduction of character variables. It is much better to change to character variables, if you can identify when integer or real variables were used in this way.&lt;/P&gt;

&lt;P&gt;IO appears to have a value of 5. I would change this to 15 ( greater than 10). F66 did not have a interactive / screen option so typically used units 5 and 6 for input and output. More recent compilers can use units 1 or 5 for input and 1 or 6 for output. Units 7 and 8 were also used by some compilers for the tape drive or an error unit.&lt;/P&gt;

&lt;P&gt;The arguments (connect-specs)&amp;nbsp;of the OPEN statement are also standardised with F90. READONLY can be replaced by ACTION='READ'. Most of the connect-specs can be omitted, as the defaults usually work. The following is probably all you need. I'd recommend that you always use iostat=.. for an OPEN statement, then check the value.&lt;/P&gt;

&lt;P&gt;CHARACTER FNAME*8&lt;BR /&gt;
	OPEN ( unit=IO, file=FNAME, action='READ', iostat=IOSTAT )&lt;BR /&gt;
	&amp;nbsp;if (iostat /= 0) write (*,*) 'Error opening file :',FNAME,' on unit',IO,' : iostat=',iostat&lt;/P&gt;

&lt;P&gt;Knowing what other changes will be needed requires some knowledge of F66 and F90+. Other changes you will need to address have been the use of&amp;nbsp;generic functions and also the standardization of DO loops.&lt;/P&gt;

&lt;P&gt;Hopefully this will give you some understanding of what you have to do to fix the errors you have reported. I will look at what you have attached and provide further suggestions.&lt;/P&gt;

&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 04:58:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948573#M91663</guid>
      <dc:creator>John_Campbell</dc:creator>
      <dc:date>2013-12-31T04:58:32Z</dc:date>
    </item>
    <item>
      <title>Thank you for your help. I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948574#M91664</link>
      <description>&lt;P&gt;Thank you for your help. I have changed the open statements as your comments. I have changed the variables 'FNAME' and 'FNUL' from DOUBLE PRECISION to CHACATER FNAME*8,FNUL*8. I find out that XDAT and FMT are also in DOUBLE PRECISION in line 457, I don't know do I need to change them or not.&amp;nbsp;I can't find which line the program set the IO as 5, I can only find the following statement:&amp;nbsp;DATA&amp;nbsp;IO5,IO6,IO20,IO21,IO22/5,6,20,21,22/ in line 374 in my attached file. After that, the same error occurred.&lt;/P&gt;

&lt;P&gt;With best regards,&lt;/P&gt;

&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 06:56:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948574#M91664</guid>
      <dc:creator>Tony</dc:creator>
      <dc:date>2013-12-31T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Hi Tony -</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948575#M91665</link>
      <description>&lt;P&gt;Hi Tony -&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me introduce you to the wonders of "traceback".&amp;nbsp;&amp;nbsp;&amp;nbsp; Make sure you still build with the /traceback option, so the feature is enabled.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	When you run your program, and it has a runtime error (like the one you have here) you also get information about where in the program it failed.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; Included in this information is the call stack, starting in the runtime library, and giving information about where in the original source code the runtime error originated.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And, that is true with&amp;nbsp; your program.&amp;nbsp;&amp;nbsp; The traceback lists where in "warps.f" the error occurs, including which routine, and line number.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So then, please, run your executable, and&amp;nbsp;look for the traceback information.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is a stack, where the top address will be in the runtime library, or perhaps Windows system library, but as you look down the list of traceback entries, you'll come across one that comes from source "warps.f", with a line number.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Look at that line number in the source, and see if there's anything "interesting" there.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2013 12:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problems-of-running-fortran-66-program/m-p/948575#M91665</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2013-12-31T12:28:00Z</dc:date>
    </item>
  </channel>
</rss>

