<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — declaration of size of arrays in parameter satement]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=193</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=193&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in declaration of size of arrays in parameter satement.]]></description>
		<lastBuildDate>Mon, 06 May 2013 15:15:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: declaration of size of arrays in parameter satement]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=767#p767</link>
			<description><![CDATA[<p>You don&#039;t need to assign the KIND values necessarily.&nbsp; It&#039;s usually not important in most integer cases as the default integer size is often big enough for indexing.&nbsp; You can also omit it from the REAL declarations, but REAL would default to single precision.</p><p>Alternatively, you can use compiler flags to define the default sizes:</p><p>-fdefault-integer-8&nbsp; &nbsp;&lt;- Sets the default integer size to 8 bytes (not so common, usually)</p><p>-fdefault-real-8&nbsp; &nbsp; &lt;- Sets the default real size to 8 bytes (normally double precision)</p><p>I&#039;ve used the latter considerably myself to quickly compile a double-precision version of my projects rather than go through and add KIND=8 everywhere.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Mon, 06 May 2013 15:15:35 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=767#p767</guid>
		</item>
		<item>
			<title><![CDATA[declaration of size of arrays in parameter satement]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=764#p764</link>
			<description><![CDATA[<p>program matrix<br />&nbsp; &nbsp; &nbsp; &nbsp; implicit none<br />&nbsp; &nbsp; &nbsp; &nbsp; INTEGER,parameter :: i4=SELECTED_INT_KIND(9)<br />&nbsp; &nbsp; &nbsp; &nbsp; INTEGER,parameter :: dp=SELECTED_REAL_KIND(15,307)<br />&nbsp; &nbsp; &nbsp; &nbsp; INTEGER(KIND=I4) :: I,J<br />&nbsp; &nbsp; &nbsp; &nbsp; INTEGER(KIND=i4),parameter :: m=3_I4,n=2_i4<br />&nbsp; &nbsp; &nbsp; &nbsp; REAL(KIND=dp) ::&nbsp; a(m,n),b(n),c(m),d(m),e(n)</p><br /><p>With respect to the above &#039;code&#039; , should I always put the &#039;kind&#039; when I assign values for the &#039;rows&#039; and &#039;columns&#039; ?.....&nbsp; I am not that certain of whether or not it is appropriate .&nbsp; .</p>]]></description>
			<author><![CDATA[null@example.com (jbarbaste)]]></author>
			<pubDate>Wed, 01 May 2013 16:46:58 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=764#p764</guid>
		</item>
	</channel>
</rss>
