<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Fortran 77]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=761&amp;type=atom" />
	<updated>2020-06-30T03:54:08Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=761</id>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3523#p3523" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[marks]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3924</uri>
			</author>
			<updated>2020-06-30T03:54:08Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3523#p3523</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3522#p3522" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-29T18:07:42Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3522#p3522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3521#p3521" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[marks]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3924</uri>
			</author>
			<updated>2020-06-29T13:32:56Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3521#p3521</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3520#p3520" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-25T11:18:16Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3520#p3520</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3519#p3519" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[marks]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3924</uri>
			</author>
			<updated>2020-06-25T09:48:46Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3519#p3519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3518#p3518" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-24T12:52:41Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3518#p3518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Fortran 77]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3517#p3517" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[marks]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3924</uri>
			</author>
			<updated>2020-06-24T12:31:45Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3517#p3517</id>
		</entry>
</feed>
