<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — legacy program issue, arrays]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=962</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=962&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in legacy program issue, arrays.]]></description>
		<lastBuildDate>Fri, 11 Oct 2024 16:15:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: legacy program issue, arrays]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4380#p4380</link>
			<description><![CDATA[<p>Hello Jeff,<br />Thanks for clarification.</p>]]></description>
			<author><![CDATA[null@example.com (Erwin)]]></author>
			<pubDate>Fri, 11 Oct 2024 16:15:20 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4380#p4380</guid>
		</item>
		<item>
			<title><![CDATA[Re: legacy program issue, arrays]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4379#p4379</link>
			<description><![CDATA[<p>Just to clear things up, Erwin is seeing the wrong dimensions in the debugger.&nbsp; The debugger is interpreting the array order in C&#039;s row-major ordering, but Fortran is indeed storing it in column-major ordering.&nbsp; Adding the statement:</p><div class="codebox"><pre><code>Write(*,*) SIZE(RN1S, 1), SIZE(RN1S, 2), SIZE(RN1S, 3)</code></pre></div><p>indeed shows the output:</p><div class="codebox"><pre><code>         10          30          80</code></pre></div><p>Meaning that the array is sized as expected.&nbsp; The debugger&#039;s output is unexpected, but explainable as a difference between how the C-centric debugger expects data to be stored in memory and how Fortran is actually storing data.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 11 Oct 2024 14:21:03 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4379#p4379</guid>
		</item>
		<item>
			<title><![CDATA[legacy program issue, arrays]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4378#p4378</link>
			<description><![CDATA[<p>I have an issue with my &quot;old&quot; legacy program. This program was compiled on another older compiler and is used since 20 years or so.<br />I compiled it now new with Simply Fortran, but I get in one case wrong calculation results. The reason for, an array is not correctly read from the data file in Simply Fortran.</p><p>Array specification in F77, within an include file:</p><p>PARAMETER (MAXTU=10,MAXAOR=30,MAXN1S=80)<br />COMMON/TURKEN/RN1S(MAXTU,MAXAOR,MAXN1S)</p><p>If i read data for this array from an input file, the correct array size and data are used with the old compiler. But with Simpy Fortran i get an array size (MAXTU=80,MAXAOR=30,MAXN1S=10) instead, and the data values are not correctly read from the data file.<br />Does anyone had a similar problem?</p><p>Erwin</p>]]></description>
			<author><![CDATA[null@example.com (Erwin)]]></author>
			<pubDate>Fri, 11 Oct 2024 08:59:57 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4378#p4378</guid>
		</item>
	</channel>
</rss>
