<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Error: End of implied-do loop at (1) could not be simplified ....]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=635&amp;type=atom" />
	<updated>2017-06-13T20:58:15Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=635</id>
		<entry>
			<title type="html"><![CDATA[Re: Error: End of implied-do loop at (1) could not be simplified ....]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2915#p2915" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2017-06-13T20:58:15Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2915#p2915</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error: End of implied-do loop at (1) could not be simplified ....]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2913#p2913" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kmutiny]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3620</uri>
			</author>
			<updated>2017-06-13T20:17:13Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2913#p2913</id>
		</entry>
</feed>
