<?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 Hi Justin, Andrew, in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142274#M137545</link>
    <description>&lt;P&gt;Hi Justin, Andrew,&lt;/P&gt;

&lt;P&gt;Thank you for the report. I am checking with development on this and will get back to you shortly.&lt;/P&gt;

&lt;P&gt;Best regard,&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 16:20:08 GMT</pubDate>
    <dc:creator>Devorah_H_Intel</dc:creator>
    <dc:date>2017-07-07T16:20:08Z</dc:date>
    <item>
      <title>unformatted read/writes</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142259#M137530</link>
      <description>&lt;P&gt;My application has recently stopped being able to read unformatted files that are greater than 2.1GB in size. &amp;nbsp;Specifically, the read command of the following subroutine fails (iostat=-1) if jj = 2900 (file size 2.15GB), but works (iostat=0) if jj=2800 (file size 2.08GB).&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;ii = 95000
jj = 4000
allocate ( store_huge(ii, jj), STAT = istat )
store_huge = 0.0

open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', iostat = istat )
write(file_id, IOSTAT=istat) store_huge
close(file_id)

store_huge = 1.0
open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
read(file_id, IOSTAT=istat) store_huge
close(file_id)

deallocate( store_huge )
&lt;/PRE&gt;

&lt;P&gt;This problem only appeared recently, and may be due to a recent Windows update (which we can no longer control, and which have been driving me crazy). &amp;nbsp;I have Windows 10 (including the most recent automated updates), am using VS2017 (which may be the problem, though I have been using this for a couple of months without issue), and&amp;nbsp;Visual Fortran Compiler 17.0.4.210.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:52:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142259#M137530</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-05T17:52:23Z</dc:date>
    </item>
    <item>
      <title>I have recompiled the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142260#M137531</link>
      <description>&lt;P&gt;I have recompiled the application with (microsoft) VS2015 (rather than VS2017), and the same problem appears. &amp;nbsp;This suggests that it is something to do with&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;Visual Fortran Compiler 17.0.4.210 and/or Windows 10 (version 1703, OS Build 15063.413).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:38:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142260#M137531</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-05T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Using the access='stream'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142261#M137532</link>
      <description>&lt;P&gt;Using the access='stream' option seems to resolve this issue, even if only sequential access (the default) is used. &amp;nbsp;Something looks like it has gone wrong with the compiler (probably due to a change in Windows), which I hope can be fixed soon...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:15:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142261#M137532</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-06T08:15:06Z</dc:date>
    </item>
    <item>
      <title>The -1 is end of file on read</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142262#M137533</link>
      <description>&lt;P&gt;The -1 is end of file on read. But is the problem the read or is it the write that failed? Did you check the end of the file that was written to see if it is all there?&lt;/P&gt;

&lt;P&gt;Also is there a timing issue with buffering data, ie windows has not fully finished the write when you do the read....&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:31:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142262#M137533</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-07-06T08:31:42Z</dc:date>
    </item>
    <item>
      <title>The error code appears with</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142263#M137534</link>
      <description>&lt;P&gt;The error code appears with the read command, not the write command. &amp;nbsp;File sizes of the write command also suggest something at least close to completion. &amp;nbsp;Yes, -1 is end of file on read; it is also possible to generate code 64 (I think), if breaking the read up into multiple variables. &amp;nbsp;I do not know how to check the end of file, as it is unformatted (binary). &amp;nbsp;I can confirm that is definitely not a timing issue.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Playing around with this code snippet reveals no problems at all, but all sorts of failures appear when &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;the "access='stream'" option is omitted and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;different combinations of variable reads-writes are used that imply a total file size greater than 2.1GB:&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;ii = 95000
jj = 2000
allocate ( store_huge(ii, jj*2), store_huge2(ii,jj), store_huge3(ii,jj), STAT = istat )
store_huge = 1.0
store_huge2 = 2.0
store_huge3 = 3.0

open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', access='stream', iostat = istat )
write(file_id, IOSTAT=istat) store_huge
write(file_id, IOSTAT=istat) store_huge2
write(file_id, IOSTAT=istat) store_huge3
close(file_id)

store_huge2 = 2.0
store_huge3 = 2.0
open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', access='stream', iostat = istat)
read(file_id, IOSTAT=istat) store_huge
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3
close(file_id)

deallocate( store_huge, store_huge2, store_huge3 )&lt;/PRE&gt;

&lt;P&gt;It really looks like microsoft have made some change that exposes a problem with the default (sequential) read/write unformatted combination.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:43:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142263#M137534</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-06T08:43:55Z</dc:date>
    </item>
    <item>
      <title>These error still suggest you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142264#M137535</link>
      <description>&lt;P&gt;These error still suggest you are reading and incomplete file. Read it back one byte at a type with non advancing IO until you get eof. Check the number of bytes read and the last few bytes read at eof. This might tell you something interesting or close this line of thought.&lt;/P&gt;

&lt;P&gt;How do you know with certainly it is not a timing issue BTW?&lt;/P&gt;

&lt;P&gt;Post a complete &amp;nbsp;program for #5 that gives the error and I will test it.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 09:23:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142264#M137535</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-07-06T09:23:18Z</dc:date>
    </item>
    <item>
      <title>It is not a timing issue,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142265#M137536</link>
      <description>&lt;P&gt;It is not a timing issue, because the same problem originally appeared when I tried to read a file that had been written some days previously. &amp;nbsp;I have also tested whether reading a (2.2GB) file an hour after it had been written (following my lunch break) made a difference - it didn't.&lt;/P&gt;

&lt;P&gt;Find attached two zip folders, with VS solutions that replicate the problem attached. &amp;nbsp;It appears that compiler options make a difference, as the code in the two solutions is identical, but the errors are different. &amp;nbsp;VERSION 1 is an extract from the application that I originally tested on, and reproduces the errors I found during my testing - these are slightly different in VERSION 2. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Please note that this problem only appeared after the most recent windows 10 update (as discussed above) - the errors I get on my system are included in the source code comments.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 11:08:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142265#M137536</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-06T11:08:06Z</dc:date>
    </item>
    <item>
      <title>Does adding:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142266#M137537</link>
      <description>&lt;P&gt;Does adding:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BUFFERED='yes'&lt;/P&gt;

&lt;P&gt;have any effect?&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 12:04:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142266#M137537</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-07-06T12:04:34Z</dc:date>
    </item>
    <item>
      <title>I just ran the test routine,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142267#M137538</link>
      <description>&lt;P&gt;I just ran the test routine, and adding buffered='yes' didn't alter results at all.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 12:13:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142267#M137538</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-06T12:13:55Z</dc:date>
    </item>
    <item>
      <title>Recently I have found a bug</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142268#M137539</link>
      <description>&lt;P&gt;Recently I have found a bug with unformatted I/O.&amp;nbsp; Can you look at my previous post, and see if it is related to what you are seeing.&amp;nbsp; Are you using /assume:buffered_io ?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/721914" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/721914&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Roman&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 18:59:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142268#M137539</guid>
      <dc:creator>Roman1</dc:creator>
      <dc:date>2017-07-06T18:59:04Z</dc:date>
    </item>
    <item>
      <title>This is possibly the same</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142269#M137540</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;This is possibly the same problem as yours Roman, as I use the buffered I/O option by default. &amp;nbsp;But, the problem I identify also arises when buffered I/O is suppressed - as indicated by the VERSION2.zip solution that is included in this post&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 20:06:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142269#M137540</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-06T20:06:36Z</dc:date>
    </item>
    <item>
      <title>I tried your version 1 and I</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142270#M137541</link>
      <description>&lt;P&gt;I tried your version 1 and I agree that it looks like a bug in the fortran runtime. I had a small play with test 1 (see below). There is nothing of interest in the windows (getlasterror) calls. it seems when the fortran sets &amp;nbsp;the error status on the read the windows error gets reset to 0. I just did that as is sometimes shows something of interest.&lt;/P&gt;

&lt;P&gt;when I did the write array array slices test it throws error 67 (&amp;nbsp;input statement requires too much data) reading the third slice, subsequent reads don't return a error (but fail as the data read is uninitialised).&lt;/P&gt;

&lt;P&gt;In conclusion this is something INTEL need to look at.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;MODULE tester


!*************************************************************
!
!	Module defined here to test specific functions
!
!*************************************************************

IMPLICIT none


CONTAINS


SUBROUTINE test11()

!*************************************************************
!
!	TEST to check writing routine
!
!*************************************************************
use ifwin, only: getlasterror
implicit none


! local
integer(4) :: ii, jj, file_id, istat
integer :: l1,l2
real(8), allocatable :: store_huge(:,:), store_huge2(:,:), store_huge3(:,:)
character(2000) :: outputFileName


!*************************************************************
!	begin code
!*************************************************************
outputFileName = 'C:\temp\check.dat'
ii = 95000
jj = 2000
allocate ( store_huge(ii, jj*2), store_huge2(ii,jj), store_huge3(ii,jj), STAT = istat )
store_huge = 1.0
store_huge2 = 2.0
store_huge3 = 3.0

! test 1
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', iostat = istat )
do l1 = 1, size(store_huge, dim=2)
    write(file_id, IOSTAT=istat) store_huge(:,l1)
    if( istat /= 0 ) write(*,*) 'write1 l1, istat', l1, istat
enddo

    
!write(file_id, IOSTAT=istat) store_huge
close(file_id)

store_huge = 0.0
write(*,*) 'err code before open 1',getlasterror()
open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
write(*,*) 'err code before read 1',getlasterror()
!read(file_id, IOSTAT=istat) store_huge	! fails with istat = -1
do l1 = 1, size(store_huge, dim=2)
    read(file_id, IOSTAT=istat) store_huge(:,l1)	! fails with istat = -1
    if( istat /= 0 ) write(*,*) 'read1 l1, istat', l1, istat, getlasterror()
enddo

write(*,*) 'err code after read 1',getlasterror()
close(file_id)


open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3	! fails with istat = 67
close(file_id)


! test 2
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', iostat = istat )
write(file_id, IOSTAT=istat) store_huge2
write(file_id, IOSTAT=istat) store_huge3
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3	! fails with istat = -1
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
read(file_id, IOSTAT=istat) store_huge	! fails with istat = -1
close(file_id)


! test 3
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', iostat = istat )
write(file_id, IOSTAT=istat) store_huge
write(file_id, IOSTAT=istat) store_huge2
write(file_id, IOSTAT=istat) store_huge3
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', iostat = istat)
read(file_id, IOSTAT=istat) store_huge	! fails with istat = -1
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3
close(file_id)


! test 4 - no fail
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', access='stream', iostat = istat )
write(file_id, IOSTAT=istat) store_huge
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', access='stream', iostat = istat)
read(file_id, IOSTAT=istat) store_huge
close(file_id)


! test 5 - no fail
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', access='stream', iostat = istat )
write(file_id, IOSTAT=istat) store_huge2
write(file_id, IOSTAT=istat) store_huge3
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', access='stream', iostat = istat)
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3
close(file_id)


! test 6 - no fail
open( newunit = file_id, file = outputfilename, form = 'unformatted', action='write', access='stream', iostat = istat )
write(file_id, IOSTAT=istat) store_huge
write(file_id, IOSTAT=istat) store_huge2
write(file_id, IOSTAT=istat) store_huge3
close(file_id)

open(newunit=file_id, FILE=outputfilename, form = 'unformatted', action='read', access='stream', iostat = istat)
read(file_id, IOSTAT=istat) store_huge
read(file_id, IOSTAT=istat) store_huge2
read(file_id, IOSTAT=istat) store_huge3
close(file_id)



deallocate( store_huge, store_huge2, store_huge3 )


continue


END SUBROUTINE test11


END MODULE tester
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 10:06:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142270#M137541</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-07-07T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Thanks for this Andrew - I am</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142271#M137542</link>
      <description>&lt;P&gt;Thanks for this Andrew - I am surprised that a error is appearing in the write statement on the grid slice test, as no error is reported when writing the full matrix. &amp;nbsp;In any case, at least the 'stream' work-around is keeping me going for the moment, and hopefully the Intel people will resolve the issue before things get more complicated.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 11:19:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142271#M137542</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-07T11:19:49Z</dc:date>
    </item>
    <item>
      <title>There was only error on read</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142272#M137543</link>
      <description>&lt;P&gt;There was only error on read not write.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:01:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142272#M137543</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-07-07T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Thanks for the clarification</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142273#M137544</link>
      <description>&lt;P&gt;Thanks for the clarification (I got confused by the "&lt;SPAN style="font-size: 12px;"&gt;write array array slices test it throws error 67")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:04:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142273#M137544</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-07T12:04:32Z</dc:date>
    </item>
    <item>
      <title>Hi Justin, Andrew,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142274#M137545</link>
      <description>&lt;P&gt;Hi Justin, Andrew,&lt;/P&gt;

&lt;P&gt;Thank you for the report. I am checking with development on this and will get back to you shortly.&lt;/P&gt;

&lt;P&gt;Best regard,&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 16:20:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142274#M137545</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2017-07-07T16:20:08Z</dc:date>
    </item>
    <item>
      <title>This was fixed as well in 18</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142275#M137546</link>
      <description>&lt;P&gt;This was fixed as well in 18.0 compiler to be released soon.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;-------------------------&lt;/P&gt;

&lt;P&gt;The type of “store_huge” array was not specified. Using real*8”:&lt;/P&gt;

&lt;P&gt;real*8, allocatable :: store_huge(:,:)&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;removed IOSTAT= specifier from &lt;/SPAN&gt;READ&lt;SPAN style="font-size: 1em;"&gt; statement to catch possible Input error:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;read(1) store_huge&lt;/P&gt;

&lt;P&gt;18.0 works fine:&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;-bash-4.1$ ifort -V&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0 Build 20170705&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;Copyright (C) 1985-2017 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;-bash-4.1$ ifort f2.f90 -assume buffered_io &amp;amp;&amp;amp; ./a.out&lt;/P&gt;

&lt;P style="margin-left:.5in;"&gt;-bash-4.1$&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 18:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142275#M137546</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2017-07-07T18:01:05Z</dc:date>
    </item>
    <item>
      <title>Apologies - is "real(8),</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142276#M137547</link>
      <description>&lt;P&gt;Apologies - is "real(8), allocatable" not equivalent to "real*8, allocable"? &amp;nbsp;I do not follow how removing IOSTAT= specifier from READ statement will catch the error - I thought this would do the reverse (or maybe you have in mind a run-time error message)?&lt;/P&gt;

&lt;P&gt;A bit confused, but happy to hear that it will be fixed in 18.0 - can you take a guess as to which month 18.0 will come out?&lt;/P&gt;

&lt;P&gt;Many thanks,&lt;/P&gt;

&lt;P&gt;Justin.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 18:11:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142276#M137547</guid>
      <dc:creator>Justin_v_</dc:creator>
      <dc:date>2017-07-07T18:11:51Z</dc:date>
    </item>
    <item>
      <title>REAL*8 is an extension - in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142277#M137548</link>
      <description>&lt;P&gt;REAL*8 is an extension - in Intel Fortran it is equivalent to REAL(8). Best practice is to not use explicit kind numbers such as 8, though. See&amp;nbsp;&lt;A href="https://software.intel.com/en-us/blogs/2017/03/27/doctor-fortran-in-it-takes-all-kinds" style="color: rgb(0, 174, 239); font-weight: bold; line-height: 1; font-size: 1.4em !important;"&gt;Doctor Fortran in "It Takes All KINDs"&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Removing the IOSTAT allows the error to be reported on the console rather than just have the variable set. The error report will have more information.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 18:49:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142277#M137548</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2017-07-07T18:49:37Z</dc:date>
    </item>
    <item>
      <title>And now I am confused as the</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142278#M137549</link>
      <description>&lt;P&gt;And now I am confused as the examples in this thread use real(8) and not the defunct real*8. I don't get Surely removing&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;IOSTAT=&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;that means I program crashes on error rather than you being able to handle the error.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 21:10:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unformatted-read-writes/m-p/1142278#M137549</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2017-07-07T21:10:19Z</dc:date>
    </item>
  </channel>
</rss>

