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 

INTEGER(8) :: sdf_bytes(1)

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2644
Location: South Pole, Antarctica

PostPosted: Tue Jun 21, 2022 12:05 am    Post subject: INTEGER(8) :: sdf_bytes(1) Reply with quote

Why compiler gives error 62 here Invalid KIND Specifier ?
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1743

PostPosted: Tue Jun 21, 2022 2:13 am    Post subject: Reply with quote

Because FTN95 integer kinds have to be chosen from {1, 2, 3, 4, 7}.

See your FTN95 documentation, consider using the iso_fortran_env module, and consider using the /ALT_KINDS option.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2644
Location: South Pole, Antarctica

PostPosted: Tue Jun 21, 2022 7:11 am    Post subject: Reply with quote

Thanks.
Should 8 be also added? Based on Make file of Epoch code 5 other Fortran compilers swallow this no problem
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Jun 21, 2022 8:10 am    Post subject: Reply with quote

Native integer kinds:
1 = INTEGER*1
2 = INTEGER*2
3 = INTEGER*4
4 = INTEGER*8

When using /ALT_KINDS
1 = INTEGER*1
2 = INTEGER*2
4 = INTEGER*4
8 = INTEGER*8

FTN95 can be configured to use /ALT_KINDS by default. See /CONFIG.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2644
Location: South Pole, Antarctica

PostPosted: Tue Jun 21, 2022 8:47 am    Post subject: Reply with quote

Yes, thanks, but why not to take alt_kinds KINDS as a default for FTN95 if all other compilers use it which typically means de-facto default ? I never used this confusing to me FTN95 KIND scheme besides KIND=7 lately with 64bit Clearwin only.

The KIND=7 still can be used as an extension if other compilers already have no collision with this.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Jun 21, 2022 12:32 pm    Post subject: Reply with quote

Dan

Quote:
why not to take alt_kinds KINDS as a default for FTN95


Rightly or wrongly that was the choice at the beginning. After that a change would break existing code.

As I mentioned above, users can configure FTN95 to make /ALT_KINDS the default.
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 -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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