replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - LAPACK la_constants will not compile
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 

LAPACK la_constants will not compile

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



Joined: 05 Jul 2006
Posts: 294

PostPosted: Sun Mar 23, 2025 8:40 pm    Post subject: LAPACK la_constants will not compile Reply with quote

I am unsure at which compiler version this started, but using version 9, la_constants.f90 from LAPACK generates a compiler time error of "Divide by zero". The problem is reproduced in the following snippet:

Code:
module LA_CONSTANTS
!  Standard constants for
   integer, parameter :: sp = kind(1.e0)

   real(sp), parameter :: sone = 1.0_sp

!  Scaling constants
   real(sp), parameter :: sulp = epsilon(0._sp)
   real(sp), parameter :: ssafmin = real(radix(0._sp),sp)**max( &
      minexponent(0._sp)-1, &
      1-maxexponent(0._sp) &
   )
   real(sp), parameter :: ssafmax = sone / ssafmin
end module LA_CONSTANTS
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Mar 24, 2025 8:14 am    Post subject: Reply with quote

Simon

This has now been fixed for the next release of FTN95.

In the mean time you can use tiny(sone) instead of ssafmin or use double precision.
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