<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Character maximal length]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=210&amp;type=atom" />
	<updated>2013-06-05T11:48:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=210</id>
		<entry>
			<title type="html"><![CDATA[Re: Character maximal length]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=814#p814" />
			<content type="html"><![CDATA[<p>John is correct, I believe.&nbsp; The compiler should only allow strings with a length of approximately 2 billion characters.&nbsp; This limit is also the maximum integer representable on the platform.&nbsp; Your string, however, in this case would consume 2GB of memory (plus Fortran overhead), which wouldn&#039;t be possible on 32-bit Windows anyway.&nbsp; </p><p>Incidentally, if you define your string length in source to be too large, the compiler should issue an error, so you won&#039;t run into runtime issues with strings being too long.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-05T11:48:46Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=814#p814</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Character maximal length]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=813#p813" />
			<content type="html"><![CDATA[<p>The max length for a character depends on the compiler you&#039;re using.&nbsp; Simply Fortran, by default, uses gfortran, but I can&#039;t find the maximum length for them.&nbsp; However, I found that the NAG compiler has a limit of 2,147,483,647.&nbsp; Regardless of how close that is to gfortran&#039;s limit, I think you&#039;re fine with 500 or more.</p>]]></content>
			<author>
				<name><![CDATA[jshahbazi]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3441</uri>
			</author>
			<updated>2013-06-04T17:53:43Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=813#p813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Character maximal length]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=812#p812" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Is there a maximal length for character variable? (Like 256 in some F77 compiler). Or I can use a length of 500 or greater if I need to?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[pierre.peclet-ext]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3453</uri>
			</author>
			<updated>2013-06-04T07:50:46Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=812#p812</id>
		</entry>
</feed>
