forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can REAL*4 array store more than 4GB?
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7142
Location: Salford, UK

PostPosted: Mon Nov 22, 2021 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7142
Location: Salford, UK

PostPosted: Mon Nov 22, 2021 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2351
Location: Sydney

PostPosted: Mon Nov 22, 2021 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7142
Location: Salford, UK

PostPosted: Tue Nov 23, 2021 3:03 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7142
Location: Salford, UK

PostPosted: Tue Nov 23, 2021 4:37 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group