<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Error: End of implied-do loop at (1) could not be simplified ....]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=635</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=635&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Error: End of implied-do loop at (1) could not be simplified .....]]></description>
		<lastBuildDate>Tue, 13 Jun 2017 20:58:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Error: End of implied-do loop at (1) could not be simplified ....]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2915#p2915</link>
			<description><![CDATA[<p>I think the error is relatively self-explanatory.&nbsp; The loop needs <em>nspect</em> to be a constant, but it&#039;s just a variable with an initial value in this case.&nbsp; You&#039;ll need to declare <em>nspect</em> as a parameter.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 13 Jun 2017 20:58:15 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2915#p2915</guid>
		</item>
		<item>
			<title><![CDATA[Error: End of implied-do loop at (1) could not be simplified ....]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2913#p2913</link>
			<description><![CDATA[<p>In the code below, c1 works, but c2 fails.<br />Here, c1 puts 25 in the loop.<br />But c2 using nspect=25.<br />And c2 gives:</p><p>&nbsp; &nbsp; &nbsp; &nbsp;DATA (DOPFAC(i),i=1,nspect)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<br />Error: end of implied-do loop at (1) could not be simplified to a constant value</p><br /><p>&nbsp; &nbsp; &nbsp; PROGRAM test01&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; integer nspect/25/<br />&nbsp; &nbsp; &nbsp; Parameter(MMOLT=77)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; COMMON/BMDCOM/DOPFAC(mmolt)</p><p>&nbsp; &nbsp; &nbsp; write(*,*) &#039;MMOLT = &#039;, MMOLT<br />&nbsp; &nbsp; &nbsp; write(*,*) &#039;nspect = &#039;, nspect</p><p>c1&nbsp; &nbsp; &nbsp; DATA (DOPFAC(i),i=1,25)</p><p>c2 Error: end of implied-do loop at (1) could not be simplified to a constant value<br />&nbsp; &nbsp; &nbsp; DATA (DOPFAC(i),i=1,nspect)<br />&nbsp; &nbsp; &nbsp;1 /1.3945E-6, 0.8922E-6, 0.8543E-6, 0.8921E-6, 1.1183E-6,&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;2&nbsp; 1.4777E-6, 1.0463E-6, 1.0805E-6, 0.7395E-6, 0.8726E-6, <br />&nbsp; &nbsp; &nbsp;3&nbsp; 1.4342E-6, 0.7456E-6, 5.04981E-07, 5.38245E-07, 5.79088E-07,<br />&nbsp; &nbsp; &nbsp;4&nbsp; 6.30907E-07, 6.36486E-07, 4.32375E-07, 4.52709E-07, 4.76212E-07,<br />&nbsp; &nbsp; &nbsp;5&nbsp; 5.99528E-07,6.65841E-07,5.83391E-07,4.7721E-07,5.69488E-07/<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; do 10, i=1,5<br />&nbsp; &nbsp; &nbsp; m=(i-1)*5+1<br />&nbsp; &nbsp; &nbsp; n=m+4<br />&nbsp; &nbsp; &nbsp; write(*,*) &#039;DOPFAC = &#039;, DOPFAC(m:n)<br />&nbsp; &nbsp;10 continue<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; STOP<br />&nbsp; &nbsp; &nbsp; end</p>]]></description>
			<author><![CDATA[null@example.com (kmutiny)]]></author>
			<pubDate>Tue, 13 Jun 2017 20:17:13 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2913#p2913</guid>
		</item>
	</channel>
</rss>
