<?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 Re: using an integer variable to control a format: is that poss in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760881#M16368</link>
    <description>Hi. Sorry, but it seems that I didn't reviewed the message in an enough carefully way. So, the code line I tried to use were pasted wrongly, and I didn't noticed. What I tried is the following:&lt;BR /&gt;&lt;BR /&gt;write (96,'(F10.4, npares+1 (X, E14.4))') ((rcut*ic)/nc)  -(rcut/(2*nc)), (Rgrid(jrdf,ic,1),jrdf=1,npares)&lt;BR /&gt;&lt;BR /&gt;This is a try to not have a defined number of maximum collums per line. Unfortunatelly, compiling doesn't show any problem, But when the program tries to write the file, it complains about the "npares+1" (npares is an integer, and that's how it`s related to the topic title! ;) ) in the write format. Basically, trying to have an "elegant" code or, at least, an "elegant" output. Hope now it's properly posted! ;) And thanks for any help possible. ;)&lt;P&gt;Message Edited by johannes@iq.ufrgs.br on &lt;SPAN class="date_text"&gt;09-16-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:23 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2004 02:22:38 GMT</pubDate>
    <dc:creator>johannes</dc:creator>
    <dc:date>2004-09-17T02:22:38Z</dc:date>
    <item>
      <title>using an integer variable to control a format: is that possible?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760878#M16365</link>
      <description>Hi all.&lt;BR /&gt;&lt;BR /&gt;Well, first of all, I'm sorry but I'm not quite sure if I'm posting it in the proper place. If the moderator thinks there is a best sub-forum for this question, please feel free to move it into there.&lt;BR /&gt;&lt;BR /&gt;I'm trying to compile and run with ifc an code that has an write statement with implicit looping as follows:&lt;BR /&gt;&lt;BR /&gt;write (96,'(F10.4,(X, E14.4))') ((rcut*ic)/nc)-(rcut/(2*nc)),(Rgrid(jrdf,ic,1),jrdf = 1,npares)&lt;BR /&gt;&lt;BR /&gt;Unfortunatelly, it compiles perfectly, BUT when I run the code the program outputs me as a syntax error (a syntax error should not be outputed by the compiler itself, rather than the code running?). I also tried some clues that I could get, for example in this forum, here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=5&amp;amp;message.id=10256" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=5&amp;amp;message.id=10256&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But none of them worked out.&lt;BR /&gt;&lt;BR /&gt;I don't even know if this kind of stuff is possible, But I don't know also where to get even this "yes" or "no". ;) Could anyone please help me with this subject?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance! ;)</description>
      <pubDate>Thu, 16 Sep 2004 06:06:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760878#M16365</guid>
      <dc:creator>johannes</dc:creator>
      <dc:date>2004-09-16T06:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: using an integer variable to control a format: is that poss</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760879#M16366</link>
      <description>Using an X format without a preceding integer constant was a fairly common extension in the past.  Compilers vary in the extent to which they do compile time format checks.  You slipped this one past the compiler, but the run time found it unacceptable.</description>
      <pubDate>Thu, 16 Sep 2004 06:57:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760879#M16366</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-09-16T06:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: using an integer variable to control a format: is that poss</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760880#M16367</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Tim is correct that the X edit descriptor without a count is non-standard. I think you are using ifc 7, which, if I recall coirrectly, did its format processing at run-time. ifort 8 should deal with this ok.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I don't see a connection to the subject of your message, though - perhaps it's due to my not having had any coffee yet?&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Sep 2004 19:51:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760880#M16367</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-09-16T19:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: using an integer variable to control a format: is that poss</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760881#M16368</link>
      <description>Hi. Sorry, but it seems that I didn't reviewed the message in an enough carefully way. So, the code line I tried to use were pasted wrongly, and I didn't noticed. What I tried is the following:&lt;BR /&gt;&lt;BR /&gt;write (96,'(F10.4, npares+1 (X, E14.4))') ((rcut*ic)/nc)  -(rcut/(2*nc)), (Rgrid(jrdf,ic,1),jrdf=1,npares)&lt;BR /&gt;&lt;BR /&gt;This is a try to not have a defined number of maximum collums per line. Unfortunatelly, compiling doesn't show any problem, But when the program tries to write the file, it complains about the "npares+1" (npares is an integer, and that's how it`s related to the topic title! ;) ) in the write format. Basically, trying to have an "elegant" code or, at least, an "elegant" output. Hope now it's properly posted! ;) And thanks for any help possible. ;)&lt;P&gt;Message Edited by johannes@iq.ufrgs.br on &lt;SPAN class="date_text"&gt;09-16-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:23 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2004 02:22:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760881#M16368</guid>
      <dc:creator>johannes</dc:creator>
      <dc:date>2004-09-17T02:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: using an integer variable to control a format: is that poss</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760882#M16369</link>
      <description>Oh, I see.  You are trying to use a feature called Variable Format Expressions.  I don't know if version 7 supports this fully.  Try this syntax:&lt;BR /&gt;&lt;BR /&gt;write (96,'(F10.4, &lt;NPARES&gt; (X, E14.4))') ((rcut*ic)/nc) -(rcut/(2*nc)), (Rgrid(jrdf,ic,1),jrdf=1,npares)&lt;BR /&gt;&lt;BR /&gt;Now it's possible you DID use that syntax and this forum didn't display it right...  If so, then it is likely that ifc 7 doesn't support it.  Version 8 definitely does.&lt;/NPARES&gt;</description>
      <pubDate>Fri, 17 Sep 2004 06:38:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/using-an-integer-variable-to-control-a-format-is-that-possible/m-p/760882#M16369</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-09-17T06:38:47Z</dc:date>
    </item>
  </channel>
</rss>

