<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — declaration of size of arrays in parameter satement]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=193&amp;type=atom" />
	<updated>2013-05-06T15:15:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=193</id>
		<entry>
			<title type="html"><![CDATA[Re: declaration of size of arrays in parameter satement]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=767#p767" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-05-06T15:15:35Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=767#p767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[declaration of size of arrays in parameter satement]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=764#p764" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-05-01T16:46:58Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=764#p764</id>
		</entry>
</feed>
