<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Bug or newbie error???]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=400&amp;type=atom" />
	<updated>2015-01-05T21:31:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=400</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1765#p1765" />
			<content type="html"><![CDATA[<p>Thanks, Jeff - I&#039;ll follow up on it.<br />Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2015-01-05T21:31:07Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1765#p1765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1764#p1764" />
			<content type="html"><![CDATA[<p>Don,</p><p>I&#039;m not aware of such a function in GNU Fortran.&nbsp; The standards-compliant method is to check the value of <em>IOSTAT</em> after each read.&nbsp; There is a helper function as of Fortran 2003 called <em>IS_IOSTAT_END</em> that should make things easier.&nbsp; Have a look at <a href="https://gcc.gnu.org/onlinedocs/gfortran/IS_005fIOSTAT_005fEND.html">https://gcc.gnu.org/onlinedocs/gfortran … 5fEND.html</a> to see a short example.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-01-05T19:54:26Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1764#p1764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1763#p1763" />
			<content type="html"><![CDATA[<p>One other question.&nbsp; In Compaq fortran there is an end-of-file function, i.e. EOF(unit) where &quot;unit&quot; is&nbsp; the device designation.&nbsp; I can&#039;t find an equivalent in gfortran.&nbsp; Is there one?</p><p>Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2015-01-05T16:07:20Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1763#p1763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1762#p1762" />
			<content type="html"><![CDATA[<p>Hi all,</p><p>I checked the program and it does use EXP.&nbsp; So I added Dr. Frank&#039;s FXP.&nbsp; I get the same results with either function.&nbsp; So, EXP doesn&#039;t seem to be causing any problem.&nbsp; But thanks to all for you suggestions.</p><p>Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2015-01-05T15:37:54Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1762#p1762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1758#p1758" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>drfrank wrote:</cite><blockquote><p>If you&#039;re using an exponential function, you might want to consider an alternative algorithm like the one below:</p></blockquote></div><p>The exponential in the runtime library tends to be problematic for some reason.&nbsp; I&#039;ll have to look into it far deeper.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-01-04T16:45:31Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1758#p1758</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1757#p1757" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>davidb wrote:</cite><blockquote><p>Now if we had the little window into the debugger, we could inspect such arrays using gdb&#039;s print command.</p><p>p x(1)<br />p x(10)&nbsp; ... etc</p></blockquote></div><p>Actually, if the array is allocatable, the above will not work in current versions of the GNU Debugger.&nbsp; Simply Fortran is effectively doing the above (but not exactly, of course), and it will not work.&nbsp; The GNU Debugger does not currently understand allocatable arrays in Fortran.</p><div class="quotebox"><cite>davidb wrote:</cite><blockquote><p>Do you know if this is just a limitation in the current version for arrays only with the allocatable attribute or does it apply to deferred arrays generally (e.g. with the pointer attribute)?</p></blockquote></div><p>I believe the shortcoming extends to pointers that are allocated.&nbsp; If they point at a statically declared target, they should work.</p><p>All of this trouble should be gone this week, though, when 2.19 is released.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-01-04T16:43:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1757#p1757</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1755#p1755" />
			<content type="html"><![CDATA[<p>If you&#039;re using an exponential function, you might want to consider an alternative algorithm like the one below:</p><p>&nbsp; &nbsp; ! ------------------------------------------------------------------<br />&nbsp; &nbsp; Function FXP(x)<br />&nbsp; &nbsp; !--- Fxponential function<br />&nbsp; &nbsp; !--- Fast Exponential FXP() - F.W. Perrella, Ph.D. (2014)</p><p>&nbsp; &nbsp; &nbsp; &nbsp; IMPLICIT NONE</p><p>&nbsp; &nbsp; &nbsp; &nbsp; REAL(dp), INTENT(IN) :: x<br />&nbsp; &nbsp; &nbsp; &nbsp; REAL(dp) :: x0,x1,x2,x3,x4,FXP<br />&nbsp; &nbsp; &nbsp; &nbsp; REAL(dp), PARAMETER :: xa = 0.5, xb = 65535., xc = 256., xd = 1.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; x1 = (xb + x)/xb<br />&nbsp; &nbsp; &nbsp; &nbsp; x2 = x1**xc<br />&nbsp; &nbsp; &nbsp; &nbsp; x3 = x2**xc<br />&nbsp; &nbsp; &nbsp; &nbsp; x4 = xd + (xa*x*x/xb)*(xd + (xa*x + xa*xa*x*x - x)/xb)<br />&nbsp; &nbsp; &nbsp; &nbsp; FXP = x3*x4<br />&nbsp; &nbsp; End Function FXP<br />&nbsp; &nbsp; ! ------------------------------------------------------------------</p><p>Although it&#039;s not quite as accurate as the intrinsic function EXP(), FXP() is stable and may be accurate enough for your application.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2014-12-31T16:40:50Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1755#p1755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1754#p1754" />
			<content type="html"><![CDATA[<p>Now if we had the little window into the debugger, we could inspect such arrays using gdb&#039;s print command.</p><p>p x(1)<br />p x(10)&nbsp; ... etc</p><p>Do you know if this is just a limitation in the current version for arrays only with the allocatable attribute or does it apply to deferred arrays generally (e.g. with the pointer attribute)?</p>]]></content>
			<author>
				<name><![CDATA[davidb]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3463</uri>
			</author>
			<updated>2014-12-31T16:23:29Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1754#p1754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1751#p1751" />
			<content type="html"><![CDATA[<p>Thanks, Jeff.&nbsp; Patience it is.....</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2014-12-31T14:28:52Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1751#p1751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1749#p1749" />
			<content type="html"><![CDATA[<p>Don,</p><p>I&#039;m currently testing a version of the debugger that does support viewing allocated array elements.&nbsp; I&#039;m only concerned about stability at this point as the entire code base of the debugger that supports this is a development version (as opposed to the &quot;stable&quot; releases we ship).&nbsp; It wouldn&#039;t help if the debugger just randomly crashed constantly.&nbsp; I will keep everyone updated, though.&nbsp; This missing feature is frustrating to all our users.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-12-31T12:34:27Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1749#p1749</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1745#p1745" />
			<content type="html"><![CDATA[<p>If you would like to add the patches and release it as a beta version, I would be happy to provide some testing time.<br />Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2014-12-30T16:45:52Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1745#p1745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1741#p1741" />
			<content type="html"><![CDATA[<p>Thanks, Jeff.<br />Looks like I&#039;ll be creating a bunch of dummy variables to be able to view results.&nbsp; If anyone else is having this problem, tell them to turn off optimization, otherwise the dummies get optimized out.<br />Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2014-12-28T17:52:20Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1741#p1741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1740#p1740" />
			<content type="html"><![CDATA[<p>Don,</p><p>That explains the issue you&#039;re seeing.&nbsp; The debugger currently does not support examining the contents of allocated elements.&nbsp; We&#039;re using the GNU Debugger within Simply Fortran, and it does not yet support Fortran allocated arrays.&nbsp; I would expect support to be present in a few more months.&nbsp; Patches have been submitted, but not accepted yet.</p><p>This lack of support has been a long outstanding issue.&nbsp; I understand the frustration of users, and we&#039;re working to possibly incorporate patches into our distribution of the GNU Debugger.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-12-28T16:05:30Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1740#p1740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1738#p1738" />
			<content type="html"><![CDATA[<p>Hi Jeff,<br />More information for you.&nbsp; It seems the *indeterminate* displays whenever I highlight an allocated array element.&nbsp; Non-allocated arrays display the selected element just fine.<br />Don</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2014-12-27T18:21:50Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1738#p1738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug or newbie error???]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1736#p1736" />
			<content type="html"><![CDATA[<p>BTW -- forgot to say I&#039;m using 2.18 build 1781.</p>]]></content>
			<author>
				<name><![CDATA[Don Hazlewood]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3590</uri>
			</author>
			<updated>2014-12-26T23:18:02Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1736#p1736</id>
		</entry>
</feed>
