<?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 Recursive I/O operation issue when calling inquire in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000564#M103534</link>
    <description>&lt;P&gt;I encounter an issue when calling "inquire" statement on one file and reading another one. Here is an example :&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program test
  implicit none
  character(100)        :: fdata, fresult, dummy
  integer               :: uin, uout
  logical               :: i_opened
 
  fdata = "datatest.dat"
  fresult = "resultest.dat"
 
  open (newunit = uin, file = fdata, form='formatted', status = 'old')
  inquire(FILE=fresult, OPENED=I_OPENED, NUMBER = uout)
 
  read(uin,*) dummy
endprogram test&lt;/PRE&gt;

&lt;P&gt;When I run that program, there is the following error :&lt;BR /&gt;
	severe (40): recursive I/O operation, unit -129 file unknown&lt;/P&gt;

&lt;P&gt;This problem can be solved by placing the "inquire" statement before opening the fdata file, but i don't understand why. Can anyone explain this to me ?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2014 14:17:18 GMT</pubDate>
    <dc:creator>Sebastien_D_</dc:creator>
    <dc:date>2014-11-25T14:17:18Z</dc:date>
    <item>
      <title>Recursive I/O operation issue when calling inquire</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000564#M103534</link>
      <description>&lt;P&gt;I encounter an issue when calling "inquire" statement on one file and reading another one. Here is an example :&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program test
  implicit none
  character(100)        :: fdata, fresult, dummy
  integer               :: uin, uout
  logical               :: i_opened
 
  fdata = "datatest.dat"
  fresult = "resultest.dat"
 
  open (newunit = uin, file = fdata, form='formatted', status = 'old')
  inquire(FILE=fresult, OPENED=I_OPENED, NUMBER = uout)
 
  read(uin,*) dummy
endprogram test&lt;/PRE&gt;

&lt;P&gt;When I run that program, there is the following error :&lt;BR /&gt;
	severe (40): recursive I/O operation, unit -129 file unknown&lt;/P&gt;

&lt;P&gt;This problem can be solved by placing the "inquire" statement before opening the fdata file, but i don't understand why. Can anyone explain this to me ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:17:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000564#M103534</guid>
      <dc:creator>Sebastien_D_</dc:creator>
      <dc:date>2014-11-25T14:17:18Z</dc:date>
    </item>
    <item>
      <title>This was a bug with NEWUNIT</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000565#M103535</link>
      <description>&lt;P&gt;This was a bug with NEWUNIT and was fixed some time ago. It works in the current release.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:22:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000565#M103535</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-25T14:22:48Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000566#M103536</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;

&lt;P&gt;Thank you for your answer. Do you know which update fixed this bug ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 08:02:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000566#M103536</guid>
      <dc:creator>Sebastien_D_</dc:creator>
      <dc:date>2014-11-26T08:02:52Z</dc:date>
    </item>
    <item>
      <title>I am not sure (I am away from</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000567#M103537</link>
      <description>&lt;P&gt;I am not sure (I am away from the office and don't have access to our issues database), but from a review of the Readmes, it looks as if it was 2013 SP1 Update 3.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2014 16:00:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Recursive-I-O-operation-issue-when-calling-inquire/m-p/1000567#M103537</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2014-11-26T16:00:31Z</dc:date>
    </item>
  </channel>
</rss>

