<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Data Initialization in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764680#M19371</link>
    <description>When F2003 support is complete you could use the SPREAD intrinsic too. &lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]CHARACTER(6) :: var(6) = [SPREAD('FORCE ', 1, 3), SPREAD('MOMENT', 1, 3)][/fortran]&lt;/PRE&gt; (Currently the intel compiler complains about it being in the initializer for a variable, which is a bit disappointing. The error message conflates terminology from different standards too.)&lt;BR /&gt;</description>
    <pubDate>Sat, 07 Jan 2012 03:00:39 GMT</pubDate>
    <dc:creator>IanH</dc:creator>
    <dc:date>2012-01-07T03:00:39Z</dc:date>
    <item>
      <title>Data Initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764678#M19369</link>
      <description>I am in the process of upgrading some legacy Fortran code to be more compliant with the 2003 requirements based on using the /stand:f03 setting, and have a simple question. I am encountering many data initializations such as :&lt;BR /&gt;CHARACTER(6) CFORCE(6)/3*' FORCE',3*'MOMENT'/&lt;BR /&gt;and receive warning message #6915 concerning data values on a type statement.&lt;BR /&gt;I tried the following and received error #6952 concerning storing numeric data in type character:&lt;BR /&gt;CHARACTER(6) :: CFORCE(6) = [3*' FORCE',3*'MOMENT']&lt;BR /&gt;&lt;BR /&gt;I assume that the "[]" brackets may be used to replace the "//";is there a way to replace the "3*" to maintainthe samefunctionality as the old statement? Is there a good book available that might show examples for these types of questions? Thanks for any help.</description>
      <pubDate>Fri, 06 Jan 2012 22:31:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764678#M19369</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2012-01-06T22:31:46Z</dc:date>
    </item>
    <item>
      <title>Data Initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764679#M19370</link>
      <description>You are almost there. Try &lt;I&gt;implied loops&lt;/I&gt;, as in&lt;BR /&gt;&lt;BR /&gt;CHARACTER(6) :: CFORCE(6) = [('FORCE',i=1,3),('MOMENT',i=1,3)]&lt;BR /&gt;&lt;BR /&gt;where the counter i has been declared as integer earlier. &lt;BR /&gt;&lt;BR /&gt;If you prefer the old style, split the declaration and the initialization into separate statements.&lt;BR /&gt;&lt;BR /&gt;CHARACTER(len=6) :: CFORCE(6)&lt;BR /&gt;data CFORCE/3*'FORCE',3*'MOMENT'/&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Jan 2012 01:58:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764679#M19370</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-01-07T01:58:08Z</dc:date>
    </item>
    <item>
      <title>Data Initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764680#M19371</link>
      <description>When F2003 support is complete you could use the SPREAD intrinsic too. &lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]CHARACTER(6) :: var(6) = [SPREAD('FORCE ', 1, 3), SPREAD('MOMENT', 1, 3)][/fortran]&lt;/PRE&gt; (Currently the intel compiler complains about it being in the initializer for a variable, which is a bit disappointing. The error message conflates terminology from different standards too.)&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Jan 2012 03:00:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764680#M19371</guid>
      <dc:creator>IanH</dc:creator>
      <dc:date>2012-01-07T03:00:39Z</dc:date>
    </item>
    <item>
      <title>Data Initialization</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764681#M19372</link>
      <description>Thank you both for these suggestions!</description>
      <pubDate>Mon, 09 Jan 2012 14:12:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Data-Initialization/m-p/764681#M19372</guid>
      <dc:creator>bbeyer</dc:creator>
      <dc:date>2012-01-09T14:12:36Z</dc:date>
    </item>
  </channel>
</rss>

