<?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 Error reading NaN in list-directed I/O in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778578#M26378</link>
    <description>(I'm going to insert some line breaks in that record for formatting here...)&lt;BR /&gt;&lt;BR /&gt;The only one I can think of that might be an issue is /fpe0. This will cause an exception on any reference of a NaN.</description>
    <pubDate>Thu, 26 Jul 2012 20:03:29 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2012-07-26T20:03:29Z</dc:date>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778571#M26371</link>
      <description>I have a customer who can successfully read NaN values under XP/Intel 11, but when transferring the program to Win7/Intel 12, gets an I/O error.&lt;BR /&gt;Has the compiler changed or is there a switch he should be using to get around this?&lt;BR /&gt;&lt;BR /&gt;I see from a Steve Lionel reply to a similar problem back in 2006, his answer was:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;Some common causes of this are:&lt;BR /&gt;&lt;BR /&gt;- Reading character strings that have blanks or punctuation in them that aren't enclosed in quotes&lt;BR /&gt;- NaN or Inf in the input file for reals&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;and I see elsewhere that being able to read NaNs is a 2003 feature.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any experience of this?&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Wed, 25 Jul 2012 20:16:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778571#M26371</guid>
      <dc:creator>kevin2</dc:creator>
      <dc:date>2012-07-25T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778572#M26372</link>
      <description>I just tried an experiment reading a NaN in list-directed input and had no problems. A test case would be appreciated.</description>
      <pubDate>Wed, 25 Jul 2012 23:04:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778572#M26372</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-07-25T23:04:17Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778573#M26373</link>
      <description>Is the data file written by the same compiler major version which is trying to read it? I don't know how much portability there should be, but I'm certain the list-directed format ifort used changed some time in the past.</description>
      <pubDate>Thu, 26 Jul 2012 16:33:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778573#M26373</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-07-26T16:33:56Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778574#M26374</link>
      <description>I don't think the handling of NaN changed at all. We did eliminate, by default, the free conversion between logical and numeric types in list-directed and namelist input.</description>
      <pubDate>Thu, 26 Jul 2012 16:44:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778574#M26374</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-07-26T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778575#M26375</link>
      <description>Is the NaN read a signaling NaN (SNaN) or quiet NaN (QNaN)?&lt;BR /&gt;&lt;BR /&gt;I am assuming you are using an unformatted (binary) read.&lt;BR /&gt;If formatted then B, O or Z edit descriptors.&lt;BR /&gt;If you are relying on junk text to produce QNAN with other edit descriptorsthen you may have a problem.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey</description>
      <pubDate>Thu, 26 Jul 2012 17:34:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778575#M26375</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2012-07-26T17:34:04Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778576#M26376</link>
      <description>Jim, the thread title says list-directed I/O. Reading the string "NaN" in list-directed I/O gives you a QNaN.</description>
      <pubDate>Thu, 26 Jul 2012 18:30:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778576#M26376</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-07-26T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778577#M26377</link>
      <description>Thanks for your comments so far.&lt;BR /&gt;A sample line from the datafile is:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;4,"Quantam",T,"09193",0.0000,0.0000,0.0000,0.0000,0.00,0.00,0.00,0.00,"Monthly",0.0000,&lt;BR /&gt;T,0.00,0.00,0.00,0.00,0.00,"Quarter",0.0000,F,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,&lt;BR /&gt;0.00,0.00,0.0000,0.00,-0.13,0.0000,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,&lt;BR /&gt;NaN,NaN,NaN,NaN,0.00,0.00,0.25,0.,0.,0.,NaN,0.0000,0.0000,0.00,0.00,0.00,0.00,0.00,0.00,&lt;BR /&gt;0.00,0.00,0.00,0.00,0.00,0.00,0.00,4,"Quantam",0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,&lt;BR /&gt;0.00,0.00,0.00,0.00,"20100623","Blank","Blank","Blank","20100629","12153700","JH",28111&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;And an extract of the code is:&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;Type :: Feesheet_Record&lt;BR /&gt; Integer :: Feesheet_Number&lt;BR /&gt; Character (len= 32) :: Feesheet_Name&lt;BR /&gt; Logical :: Feesheet_Active&lt;BR /&gt; Character (len= 8) :: Feesheet_Account&lt;BR /&gt; Real (kind= 8) :: Feesheet_Fund_cash_retained&lt;BR /&gt; Real (kind= 8) :: Feesheet_Fund_leveraged&lt;BR /&gt; Real (kind= 8) :: Feesheet_Fund_proportion&lt;BR /&gt; Real (kind= 8) :: Feesheet_Afee_rate&lt;BR /&gt; Real (kind= 8) :: Feesheet_Afee_base&lt;BR /&gt; Real (kind= 8) :: Feesheet_Afee_calculated&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Type(Feesheet_Record) :: Feesheet_Data&lt;BR /&gt;&lt;BR /&gt;Character (len=2048) :: Data_string&lt;BR /&gt;open(unit=iFile,name='Datafile.txt',status='old')&lt;BR /&gt;&lt;/I&gt;&lt;I&gt;read ( unit = iFile, fmt= "(A)", iostat= iErr ) Data_string&lt;BR /&gt;&lt;/I&gt;&lt;I&gt;read (Data_string, fmt= * , iostat= iErr ) Feesheet_Data &lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;expecting the NaNs to be read into some of the REALS of the record structure.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, when I narrow the code down to a small program on my machine, it works OK, so I was hoping that it could be a switch-setting on the customer's project that was causing the error.</description>
      <pubDate>Thu, 26 Jul 2012 19:40:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778577#M26377</guid>
      <dc:creator>kevin2</dc:creator>
      <dc:date>2012-07-26T19:40:28Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778578#M26378</link>
      <description>(I'm going to insert some line breaks in that record for formatting here...)&lt;BR /&gt;&lt;BR /&gt;The only one I can think of that might be an issue is /fpe0. This will cause an exception on any reference of a NaN.</description>
      <pubDate>Thu, 26 Jul 2012 20:03:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778578#M26378</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2012-07-26T20:03:29Z</dc:date>
    </item>
    <item>
      <title>Error reading NaN in list-directed I/O</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778579#M26379</link>
      <description>I'm afraid we've already tried that switch.&lt;BR /&gt;Thanks for your help - I assume there must be something else going on in the program that is affecting the read. I'll keep digging.</description>
      <pubDate>Mon, 30 Jul 2012 20:37:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Error-reading-NaN-in-list-directed-I-O/m-p/778579#M26379</guid>
      <dc:creator>kevin2</dc:creator>
      <dc:date>2012-07-30T20:37:06Z</dc:date>
    </item>
  </channel>
</rss>

