View previous topic :: View next topic |
Author |
Message |
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Tue Jun 21, 2022 12:05 am Post subject: INTEGER(8) :: sdf_bytes(1) |
|
|
Why compiler gives error 62 here Invalid KIND Specifier ? |
|
Back to top |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1887
|
Posted: Tue Jun 21, 2022 2:13 am Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Tue Jun 21, 2022 7:11 am Post subject: |
|
|
Thanks.
Should 8 be also added? Based on Make file of Epoch code 5 other Fortran compilers swallow this no problem |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Tue Jun 21, 2022 8:10 am Post subject: |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2824 Location: South Pole, Antarctica
|
Posted: Tue Jun 21, 2022 8:47 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7930 Location: Salford, UK
|
Posted: Tue Jun 21, 2022 12:32 pm Post subject: |
|
|
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 |
|
|
|