<?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>https://forums.approximatrix.com/viewtopic.php?id=157</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=157&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Fortran 77.]]></description>
		<lastBuildDate>Thu, 21 Feb 2013 12:22:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=576#p576</link>
			<description><![CDATA[<p>To illustrate Jeff&#039;s reply...</p><p>I have a current project for structural analysis of 2-dimensional rigid frames, which had something like 8,000 lines of F77 code when I started using Simply Fortran (&#039;SF&#039;) for its ongoing development.&nbsp; <br />The whole thing compiled almost straight away when I showed it to SF.&nbsp; The only things that didn&#039;t work immediately were (i) a very small number of non-standard extensions to F77 which I had used because they appeared to be gaining wide acceptance among compilers, such as &#039;ENCODE&#039; and &#039;DECODE&#039;, and (ii) system-dependent code, which I had needed in my original version.</p><p>I had used very few non-standard extensions to F77, and most of the well-known ones which I had used have in any event been implemented in F95 onwards, so there were very few of them which needed some very minor alterations to the source code.&nbsp; The kind of system-dependent code I had used of necessity included things like functions to retrieve the&nbsp; system system date, the command line, etc., functions used to delete files, functions used to erase the console screen, move the cursor backwards, read a single keypress and so forth.&nbsp; Knowing that these would differ in every implementation, I had given them all my own function names and alll were coded together in a single system-dependent source file.&nbsp; GNU Fortran was able to handle all of my needs, and I needed to rewrite just this one file out of more than thirty source files in all.</p><p>My original code had implemented a dynamic storage strategy, allowing many arrays to be dimensioned at run-time.&nbsp; F77 does not include this but I was able to provided it in how I devised my source code.&nbsp; I made heavy use of one-dimensional arrays declared as being of length 1, and then addressing them outside the declared address range.&nbsp; <br /> eg&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; REAL*8&nbsp; STIFF(1). <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; READ(LUI, 10) N<br />&nbsp; &nbsp; &nbsp; &nbsp; 10&nbsp; &nbsp; FORMAT (I3) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DO 100 I=1,N <br />&nbsp; &nbsp; &nbsp; 100&nbsp; &nbsp; STIFF(I) = {some value}</p><p>All of this worked perfectly in SF, at the first attempt.</p><p>As I have continued developing my code, it has expanded to around 10,000 lines, and I have been making full use of F95 facilities, to take advantage of all that we can now do in FORTRAN.&nbsp; I&#039;ve also implemented a Windows user interface and RTF output files (readable as formatted M$Word documents) in place of the original console-prompted i/o.&nbsp; I use the DISLIN library for the Windows graphic screen functions.<br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Thu, 21 Feb 2013 12:22:28 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=576#p576</guid>
		</item>
		<item>
			<title><![CDATA[Re: Fortran 77]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=575#p575</link>
			<description><![CDATA[<p>Yes, the compiler should have no problem compiling Fortran 77 code.&nbsp; You may have to add the compiler flag </p><div class="codebox"><pre><code>-std=legacy</code></pre></div><p> under Compiler Options (accessible from the Options menu) to enforce conformance with the older standard.</p><p>If you&#039;d like to try before registering, Simply Fortran is free to use for the first 30 days.&nbsp; It may be downloaded at <a href="http://simplyfortran.com/download/">http://simplyfortran.com/download/</a>.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 21 Feb 2013 11:19:05 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=575#p575</guid>
		</item>
		<item>
			<title><![CDATA[Fortran 77]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=574#p574</link>
			<description><![CDATA[<p>Does Simply Fortran handle Fortran 77 without any problems?</p>]]></description>
			<author><![CDATA[null@example.com (francob)]]></author>
			<pubDate>Thu, 21 Feb 2013 10:43:14 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=574#p574</guid>
		</item>
	</channel>
</rss>
