<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Fortran 77]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=761</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=761&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Fortran 77.]]></description>
		<lastBuildDate>Tue, 30 Jun 2020 03:54:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3523#p3523</link>
			<description><![CDATA[<p>2 FORMAT(/,2X,&#039;Select the sequential number of metal = &#039;,/)</p><p>&nbsp; &nbsp; 5 FORMAT(A80)</p><p>The soft read from file 10 (metal.dat) and after that jump to label 800 when reading data presented in file was completed. It is OK. It is right work. The question is why the soft does not stop to &quot;entering requested metal&quot; after label 800. I will send you full code file to support@approximatrix.com.</p>]]></description>
			<author><![CDATA[null@example.com (marks)]]></author>
			<pubDate>Tue, 30 Jun 2020 03:54:08 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3523#p3523</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3522#p3522</link>
			<description><![CDATA[<p>My first guess is that the first data read at:<br /></p><div class="codebox"><pre><code>              READ(10,5,ERR=800) WORD80     ! skip line of:123345....</code></pre></div><p>fails and the program correctly jumps to label <em>800</em>.&nbsp; I don&#039;t know why it fails, though, without knowing what the <em>FORMAT</em> statement at label <em>5</em> is.&nbsp; Could you provide a bit more?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 29 Jun 2020 18:07:42 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3522#p3522</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3521#p3521</link>
			<description><![CDATA[<p>Jeff, Thank you for response.<br />I corrected Format and CHARACTER operators. Build is OK and was completed without mistakes. However, when I run the exe file, the program does not stop to read the input data.<br />Below presented part of soft where the requested data were not red.</p><p>&nbsp; CHARACTER (len=80) WORD80<br />&nbsp; &nbsp; &nbsp; CHARACTER(len=80) MTLNAME<br />&nbsp; &nbsp; &nbsp; CHARACTER(len=16) WORD16<br />&nbsp; &nbsp; &nbsp; CHARACTER(len=21) WORD21<br />&nbsp; &nbsp; &nbsp; CHARACTER(len=39) WORD39<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; CHARACTER(len=1) YN<br />C<br />&nbsp; &nbsp; &nbsp; DIMENSION&nbsp; &nbsp;TMPDAT(15), FTUDAT(15),FTYDAT(15),<br />&nbsp; &nbsp; &nbsp;+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CRPDAT(15)<br />C<br />&nbsp; &nbsp; &nbsp; OPEN(UNIT = 10, FILE = &#039;METAL.DAT&#039;, STATUS = &#039;OLD&#039;)</p><p>C&nbsp; &nbsp; &nbsp; &nbsp;--------------------------------------------------------------<br />C&nbsp; &nbsp; &nbsp; &nbsp; ---request for metal number from data,and preparing a list --<br />C&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--------- of metals for the user ----------------------------<br />C<br />&nbsp; &nbsp; &nbsp; WRITE(*,1)<br />&nbsp; &nbsp; &nbsp; REWIND 10<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DO ILINE = 1, 10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! read 10 lines of comments<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;READ(10,5) WORD80<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END DO<br />&nbsp; 200 CONTINUE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ(10,5,ERR=800) WORD80&nbsp; &nbsp; &nbsp;! skip line of:123345....<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ(10,5) WORD80<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WRITE(*,5) WORD80&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;! print metals name <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DO JLINE = 1 , 28&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! skip remaining lines <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ(10,5) WORD80<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END DO<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GO TO 200&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />C&nbsp; &nbsp; &nbsp;<br />&nbsp; 800 CONTINUE&nbsp; <br />C&nbsp; &nbsp; &nbsp;------------- entering&nbsp; requested metal ------------------<br />&nbsp; &nbsp; &nbsp; WRITE(*,2)<br />&nbsp; &nbsp; &nbsp; READ(*,*) NMT<br />C&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />C&nbsp; &nbsp; &nbsp; -------reading data for request metal--</p><br /><br /><br /><p>&nbsp; 2 FORMAT(/,2X,&#039;Select the sequential number of metal = &#039;,/)</p>]]></description>
			<author><![CDATA[null@example.com (marks)]]></author>
			<pubDate>Mon, 29 Jun 2020 13:32:56 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3521#p3521</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3520#p3520</link>
			<description><![CDATA[<p>The backslash in your <em>FORMAT</em> statements is <a href="https://stackoverflow.com/questions/43116912/gfortran-error-unexpected-element-in-format-string-at-1">a non-standard extension provided by Intel&#039;s compiler</a> which probably originated with DEC compilers since that&#039;s all the Intel compiler actually is.&nbsp; This extension isn&#039;t supported by our compiler.</p><p>It appears, though, that the backslash is merely attempting to stop the <em>WRITE</em> statements from advancing to a new line (technically it stops &quot;advancing a record,&quot; which is a line in this case, I&#039;m guessing).&nbsp; You can change this easily to standards-compliant Fortran, though it will be a modern Fortran standard.&nbsp; First, remove the backslashes from all the <em>FORMAT</em> statements:</p><div class="codebox"><pre><code>     1 FORMAT(2X,&#039;FLUID NUMBER=&#039;)</code></pre></div><p>Next, you&#039;ll need to modify the <em>WRITE</em> statements as well with the modern, standards-compliant change:</p><div class="codebox"><pre><code>       WRITE(*, 1, ADVANCE=&#039;NO&#039;)</code></pre></div><p>That&#039;s the quickest way to fix this.&nbsp; Luckily, it appears you only have a handful of places that needs changes.</p><p>If you don&#039;t care about everything being on the same line, though, you can always just delete the backslashes and take no other action.</p><p>If you do need to send code, you can always contact me at <em>support@approximatrix.com</em>.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 25 Jun 2020 11:18:16 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3520#p3520</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3519#p3519</link>
			<description><![CDATA[<p>Thank you for answer. How can I send you small .for file?<br />The build results are presented below</p><br /><p>==============================================================================<br />Generating Makefile... Okay<br />==============================================================================<br />Compiling .\Refrig.for<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:117:33:</p><p>&nbsp; 117 |&nbsp; &nbsp; &nbsp;1 FORMAT(2X,&#039;FLUID NUMBER=&#039;,\)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br />Error: Unexpected element &#039;\&#039; in format string at (1)<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:118:36:</p><p>&nbsp; 118 |&nbsp; &nbsp; &nbsp;2 FORMAT(2X,&#039;TEMPERATURE,[C]=&#039;,\)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: Unexpected element &#039;\&#039; in format string at (1)<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:122:28:</p><p>&nbsp; 122 |&nbsp; &nbsp; &nbsp;5 FORMAT(2X,&#039;FLUID - &#039;,\)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: Unexpected element &#039;\&#039; in format string at (1)<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:135:72:</p><p>&nbsp; 135 |&nbsp; &nbsp; &nbsp; &nbsp;PAUSE<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Warning: Deleted feature: PAUSE statement at (1)<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:24:72:</p><p>&nbsp; &nbsp;24 |&nbsp; &nbsp; &nbsp; &nbsp;WRITE(*,1)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: FORMAT label 1 at (1) not defined<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:26:72:</p><p>&nbsp; &nbsp;26 |&nbsp; &nbsp; &nbsp; &nbsp;WRITE(*,2)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: FORMAT label 2 at (1) not defined<br />- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br />.\Refrig.for:113:72:</p><p>&nbsp; 113 |&nbsp; &nbsp; &nbsp; &nbsp;WRITE(*,5)<br />&nbsp; &nbsp; &nbsp; |&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: FORMAT label 5 at (1) not defined<br />Error: Last command making (build\Refrig.o) returned a bad status<br />Error: Make execution terminated</p><p>* Failed *</p>]]></description>
			<author><![CDATA[null@example.com (marks)]]></author>
			<pubDate>Thu, 25 Jun 2020 09:48:46 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3519#p3519</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3518#p3518</link>
			<description><![CDATA[<p>Simply Fortran fully supports the Fortran 77 standard.&nbsp; Can you provide any more information about your problem?&nbsp; I&#039;m sure I&#039;d be able to help.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 24 Jun 2020 12:52:41 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3518#p3518</guid>
		</item>
		<item>
			<title><![CDATA[Fortran 77]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3517#p3517</link>
			<description><![CDATA[<p>Before to purchase simply FORTRAN I am checking its work with trial version. I have tried to perform build&nbsp; of FORTRAN 77&nbsp; file without any success. If simply FORTRAN can build FORTRAN 77 file?</p>]]></description>
			<author><![CDATA[null@example.com (marks)]]></author>
			<pubDate>Wed, 24 Jun 2020 12:31:45 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3517#p3517</guid>
		</item>
	</channel>
</rss>
