replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Is this error or comment ?
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 

Is this error or comment ?

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



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

PostPosted: Thu Aug 09, 2012 8:16 am    Post subject: Is this error or comment ? Reply with quote

Get two errors in someone's code i try to use

Code:

1663)         REAL(8) a(np,np),alud(np,np),b(n),x(n)
*** Invalid KIND specifier
COMMENT - Specifying the kind of the type REAL with a constant is non-portable
    - 'SELECTED_REAL_KIND(6,37)' would be better
1665)         REAL(8) r(np),sdp
*** Invalid KIND specifier
    2 ERRORS, 1 COMMENT  [<IMPROVE8> FTN95/Win32 v6.30.0]


Is Real(8) error or comment here ?





The subroutine starts like this

Code:
   SUBROUTINE improve8(a,alud,n,np,indx,b,x)
c
c- iterative improvment, computing residu
c
   INTEGER n,np,indx(n)
   REAL(8) a(np,np),alud(np,np),b(n),x(n)
   INTEGER i,j
   REAL(8) r(np),sdp
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Aug 09, 2012 12:50 pm    Post subject: Reply with quote

*** denotes an error. Then you get an additional comment.

KIND = 8 may be OK if you use /alt_kinds on the command line.
Back to top
View user's profile Send private message AIM Address
DanRRight



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

PostPosted: Fri Aug 10, 2012 10:08 am    Post subject: Reply with quote

Thanks, will try this. I can suggest to the code authors to change that if this is not portable. Which way would be the best?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri Aug 10, 2012 3:48 pm    Post subject: Reply with quote

For portability use SELECTED_REAL_KIND.
Back to top
View user's profile Send private message AIM Address
DanRRight



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

PostPosted: Sat Aug 11, 2012 5:49 am    Post subject: Reply with quote

Do other common "slang" shorter forms exist but not as short as one above in my example? SELECTED_REAL_KIND is damn long
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Sat Aug 11, 2012 6:01 am    Post subject: Reply with quote

Dan,

What about REAL*8
I don't know of a compiler that will get that wrong.

John
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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