replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Real Extended Precision
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 

Real Extended Precision

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



Joined: 16 Nov 2009
Posts: 155

PostPosted: Wed Mar 26, 2025 4:08 pm    Post subject: Real Extended Precision Reply with quote

On my PC, version ftn95 9.10.0.0 under Windows 11 Pro 24H2 fails to run the attached program with the error messages:
Line 15 error 62 � Invalid KIND specifier
Line 19 error 636 � KIND parameter out of range
Gfortran runs test116 in all variations without any problem.
KL
Code:

      program test116

         use iso_fortran_env
         implicit none

         integer, parameter :: sp = real32
         integer, parameter :: dp = real64
         integer, parameter :: qp = real128
!!!      integer, parameter :: qp = selected_real_kind(2*precision(1.0_dp))
!!!      integer, parameter :: qp = SELECTED_REAL_KIND(33, 4931)

         real (sp) :: real_sp
         real (dp) :: real_dp
         real (qp) :: real_qp

         real_sp = 1.0_sp
         real_dp = 1.0_dp
         real_qp = 1.0_qp

         write (*,*) real_sp
         write (*,*) real_dp
         write (*,*) real_qp

      end program test116
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Mar 27, 2025 8:03 am    Post subject: Reply with quote

KL

FTN95 ISO_FORTRAN_ENV has REAL128=-1 which means that 128 bit reals are not supported.
Back to top
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2614
Location: Sydney

PostPosted: Thu Mar 27, 2025 10:20 am    Post subject: Reply with quote

It was the case that non /64 supported real*10.
Has that now changed for version ftn95 9.10.0.0 under Windows 11 Pro 24H2 ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Mar 27, 2025 12:30 pm    Post subject: Reply with quote

Extended precision (REAL*10) is still supported for Win32 but at the moment there is nothing in ISO_FORTRAN_ENV for this.
Back to top
View user's profile Send private message AIM Address
KL



Joined: 16 Nov 2009
Posts: 155

PostPosted: Fri Mar 28, 2025 11:24 am    Post subject: Reply with quote

Thank you very much for the brief explanation. I assumed that all Fortran compilers using the module iso_fortran_env "understand" the kind definition real128.

However, it seems that gfortran, using real128 defined by the module iso_fortran_env, and Silverfrost ftn95 employing kind(3) give identical results for extended precision.
KL
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Mar 28, 2025 2:39 pm    Post subject: Reply with quote

Yes but FTN95 extended precision is only available for Win32.
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