View previous topic :: View next topic |
Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Mon Nov 22, 2021 12:28 pm Post subject: |
|
|
JohnCampbell
Regarding the program that you posted on 29 September, the IO library uses 32 bit integers when writing partcl4 and this leads to the failure.
I can apply a local fix in this context but the chances are that the same problem will occur elsewhere.
I will send you a new ClearWin64.dll (with this fix included) for you to try. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Mon Nov 22, 2021 12:58 pm Post subject: |
|
|
JohnCampbell
This thread has become multi-faceted.
Would you be willing to pick out the different issues and start new threads, one for each issue and each with the relevant sample code? |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2556 Location: Sydney
|
Posted: Mon Nov 22, 2021 1:08 pm Post subject: |
|
|
Thanks Paul,
I think you are stating that unformatted binary files have a record size limit of 2gb bytes.
I also posted an example of stream I/O that did not work.
I am more interested to see if FTN95 /64 stream I/O is able to position beyond 2gb file address, ie supporting 8-byte integer file addresses.
My random access file system uses a default integer word address which supports 8 Gbyte files. I was wondering if I could "easily" convert to an 8 byte file address with stream I/O for larger files.
I will post a new thread for the 8-byte stream I/O example.
It is not urgent as yet,
John |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Tue Nov 23, 2021 3:03 pm Post subject: |
|
|
John
I have spent some time on your program stream_test.f90 that you posted on 1 October.
The failure is "fixed" if you change line 136 from
write ( unit=stream_unit, pos=stream_address, iostat=iostat ) nw
to
write ( unit=stream_unit, iostat=iostat ) nw
At the moment I don't know if this implies there is a fault in the FTN95 IO library. Anyway it is not necessary to specify the stream position at this point and you have not done so in the lines that follow. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Tue Nov 23, 2021 4:37 pm Post subject: |
|
|
John
Further to my last post above, there does appear to be a fault in the IO library that has now been corrected for the next release of the DLLs.
Also the STREAM POS=position is currently limited to 32 bit integer values (2GB). I will see if it can easily be extended. |
|
Back to top |
|
|
|