<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — legacy program issue, arrays]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=962&amp;type=atom" />
	<updated>2024-10-11T16:15:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=962</id>
		<entry>
			<title type="html"><![CDATA[Re: legacy program issue, arrays]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4380#p4380" />
			<content type="html"><![CDATA[<p>Hello Jeff,<br />Thanks for clarification.</p>]]></content>
			<author>
				<name><![CDATA[Erwin]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4257</uri>
			</author>
			<updated>2024-10-11T16:15:20Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4380#p4380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: legacy program issue, arrays]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4379#p4379" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2024-10-11T14:21:03Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4379#p4379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[legacy program issue, arrays]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4378#p4378" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Erwin]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4257</uri>
			</author>
			<updated>2024-10-11T08:59:57Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4378#p4378</id>
		</entry>
</feed>
