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 

Version 8.40 loss of precision

 
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: 268

PostPosted: Tue Dec 04, 2018 5:05 am    Post subject: Version 8.40 loss of precision Reply with quote

In version 8.40 I get a compilation warning message that I was not getting in earlier versions for the following code:

Code:
Module m
  Integer, Parameter, Public :: dp = Kind(1.0d0) ! - double precision -
  Integer, Parameter, Public :: sp = Kind(1.0e0) ! - single precision -
#if DP==1
  Integer, Parameter, Public :: rp = dp          ! - default precision -
#else
  Integer, Parameter, Public :: rp = sp          ! - default precision -
#endif
!
  Real(Kind=rp), Parameter, Public :: million = 1000000.0_rp ! - one million -
End Module m


I compile with /CFPP /VPARAM DP 1

The error message is:

A REAL constant has been trucated with possible loss of precision
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Dec 04, 2018 9:09 am    Post subject: Reply with quote

Sorry about this. We are still getting the occasional false error report with this new test for loss of precision. I have fixed this particular failure for the next release after v8.40.
Back to top
View user's profile Send private message AIM Address
simon



Joined: 05 Jul 2006
Posts: 268

PostPosted: Tue Dec 04, 2018 1:13 pm    Post subject: Reply with quote

Thanks, Paul. Does that mean that the error report is spurious and I can simply ignore it?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Dec 04, 2018 2:09 pm    Post subject: Reply with quote

Yes it does.
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