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 

Search found 2399 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Memory leaks by pointers to derived data types?
JohnCampbell

Replies: 8
Views: 94

PostForum: Support   Posted: Wed Sep 28, 2022 2:49 am   Subject: Re: Memory leaks by pointers to derived data types?
Some procedures to manipulate the data use their local set of pointers which get nullified manually when the precedure terminates.

If the pointers are associated with allocated memory, this memory ...
  Topic: Fails to save arrays > 4GB
JohnCampbell

Replies: 5
Views: 134

PostForum: Support   Posted: Tue Sep 27, 2022 2:10 pm   Subject: Re:
Can you explain what you mean by "Stream I/O integer*8 addressing"?

To write a record longer than 2^31 for stream I/O, I would expect that stream I/O must support 64 bit integer addressin ...
  Topic: Finding the number of files/folders in a folder
JohnCampbell

Replies: 7
Views: 165

PostForum: Support   Posted: Tue Sep 27, 2022 7:37 am   Subject:
I use FILES@ and FILES8@ for scanning tree directories.

I use an array to store all the information, appending to the work array.
The array can be larger than 32767, but only the next 32767 can be ...
  Topic: Fails to save arrays > 4GB
JohnCampbell

Replies: 5
Views: 134

PostForum: Support   Posted: Tue Sep 27, 2022 7:27 am   Subject:
my understanding of unformatted binary records is that FTN95 does not support records longer than about 2^31 bytes ( ie the header is byte 1 = -1 and bytes 2:5 must be a positive 4-byte integer )

...
  Topic: Interface intent differs from subroutine intent
JohnCampbell

Replies: 5
Views: 415

PostForum: Support   Posted: Fri Sep 16, 2022 6:38 am   Subject:
Simon,

Sorry, my comment was not as a solution to your problem, but my venting at the poor design of Fortran's INTERFACE.

If you define an interface, you are duplicating Fortran code, which beco ...
  Topic: Interface intent differs from subroutine intent
JohnCampbell

Replies: 5
Views: 415

PostForum: Support   Posted: Thu Sep 15, 2022 2:09 pm   Subject:
This is a good example of why Fortran INTERFACE is a totally flawed approach.
There should have been a requirement in the Fortran standard that INTERFACE definitions shoul be generated and managed in ...
  Topic: Fortran 2003 and 2008 features
JohnCampbell

Replies: 116
Views: 38217

PostForum: Suggestions   Posted: Sun Aug 28, 2022 2:08 pm   Subject:
My understanding of this latest thread is that a is an optional argument for the examples to work.
So in the calling routine, a doesnt need to be declared, only b.
Should a be declared opti ...
  Topic: Fortran 2003 and 2008 features
JohnCampbell

Replies: 116
Views: 38217

PostForum: Suggestions   Posted: Wed Aug 24, 2022 4:36 pm   Subject: Re:
Dan

Optional and named/keyword arguments were introduced at the "beginning" i.e. in the Fortran 90 standard. and they do require an interface definition, either explicitly or via contain ...
  Topic: Fortran 2003 and 2008 features
JohnCampbell

Replies: 116
Views: 38217

PostForum: Suggestions   Posted: Sat Aug 06, 2022 10:03 am   Subject:
I am not familiar with the history of NORM2, but I do use a similar RMS function, which I thought was more often used ?
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Wed Jul 20, 2022 6:20 am   Subject:
Paul,

It appears that "inquire (iolength=l4a) a" does not give the value I would expect for a "real :: a(10)", which should be 40 bytes, but FTN95 reports 400 (bits?) or what ?? ...
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Tue Jul 19, 2022 9:23 am   Subject:
Dan,

Here is a version of the program that will run on FTN95 for a short (<255 bytes) and a long record.

Paul,
It appears that "inquire (iolength=l4a) a" does not give the value I ...
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Mon Jul 18, 2022 7:48 am   Subject: Re:
As i wrote, all works fine if we remove access=streamRedo this test, as this should NOT be the case !!

The default "access=" for Form="unformatted" should be "sequential&qu ...
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Mon Jul 18, 2022 7:23 am   Subject:
Dan,

We need to review which types of Fortran binary file formats are available.

These are selected via ACCESS= in the OPEN statement and the options are:

DIRECT these are fixed length record ...
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Sun Jul 17, 2022 5:31 am   Subject:
What is "transparent" ? Good question !

Access='transparent' is FTN95's earlier support for stream like access before Access='stream' now being supported by FTN95.

I have looked for ...
  Topic: Are Intel compiler unformatted files readable by FTN95?
JohnCampbell

Replies: 14
Views: 1063

PostForum: General   Posted: Wed Jul 13, 2022 9:35 am   Subject:
ifort and gfortran use a 4-byte record header/footer.
FTN95 use a 1-byte or 5-byte record header/footer. 1-byte formats are for records smaller than 256 bytes.
ifort use 4-byte header/footer for rec ...
 
Page 1 of 160 Goto page 1, 2, 3 ... 158, 159, 160  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group