<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Finding cause of IEEE errors]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=378&amp;type=atom" />
	<updated>2014-10-14T21:46:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=378</id>
		<entry>
			<title type="html"><![CDATA[Re: Finding cause of IEEE errors]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1554#p1554" />
			<content type="html"><![CDATA[<p>You&#039;ll need to instruct the Fortran runtime library to trap said errors.&nbsp; To enable trapping these errors, first open the Project Options window by clicking &quot;Options&quot; in the Project menu.&nbsp; Next, click the &quot;Compiler Flags&quot; tab.&nbsp; Add the following to the Fortran flags:</p><div class="codebox"><pre><code>-ffpe-trap=invalid,zero</code></pre></div><p>Note that there are no spaces in the above flag, including after the comma.&nbsp; Click Ok in the Project Options window.&nbsp; Next, click &quot;Clean&quot; in the Build menu, and finally &quot;Build Now!&quot; in the Build menu.</p><p>The above should cause the runtime library to stop when the errors are encountered and produce a backtrace, letting you know where the function occurred.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-10-14T21:46:48Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1554#p1554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Finding cause of IEEE errors]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1553#p1553" />
			<content type="html"><![CDATA[<p>At the end of runs of my program I get the message<br />&nbsp; &quot;Note: The following floating-point exceptions are signaling: IEEE_INVALID_FLAG IEEE_DIVIDE_BY_ZERO&quot;.</p><p>How can I find out what program statement(s) cause the exceptions?</p>]]></content>
			<author>
				<name><![CDATA[dstraley]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3581</uri>
			</author>
			<updated>2014-10-14T21:06:22Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1553#p1553</id>
		</entry>
</feed>
