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 

Search found 7 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Using Numerical Recipes with FTN95
jlb

Replies: 2
Views: 364

PostForum: Support   Posted: Mon Dec 21, 2020 5:22 pm   Subject:
Paul

Thanks for your attentive reviewing. I corrected this line in the source code above, sorry for the mistake, the interface for mmin doesn't seem to be required though.
  Topic: Using Numerical Recipes with FTN95
jlb

Replies: 2
Views: 364

PostForum: Support   Posted: Mon Dec 21, 2020 2:30 pm   Subject: Using Numerical Recipes with FTN95
Some recipes (Numerical Recipes in Fortran 90: Volume 2, by W.H. Press et al.) use a subsidiary routine (xxx_private) for sharing / hiding data. The principle is given in the following example, withou ...
  Topic: Limitation for the counter of a loop
jlb

Replies: 10
Views: 800

PostForum: Support   Posted: Thu Nov 12, 2020 11:45 am   Subject:
Paul
Thanks for the handling of my question. The compile time warning may help beginners like me in such cases.
  Topic: Limitation for the counter of a loop
jlb

Replies: 10
Views: 800

PostForum: Support   Posted: Thu Nov 12, 2020 11:27 am   Subject:
John
May I relate the whole genesis of this very contrived sample program. While experimentating with integers (KIND=1) for bitewise purpose, I encountered an overflow at runtime for 127 (as literal) ...
  Topic: Limitation for the counter of a loop
jlb

Replies: 10
Views: 800

PostForum: Support   Posted: Mon Nov 02, 2020 2:33 pm   Subject: Limitation for the counter of a loop
Is the allowed value for the counter i of a loop limited to HUGE(i)-1 ?
The following code produces an infinite loop for KIND=1, 2, 3 and 4.

PROGRAM Loop
IMPLICIT NONE
INTEGER(KIND=1) i ...
  Topic: Limitation for binary output of 64-bit integers?
jlb

Replies: 7
Views: 777

PostForum: Support   Posted: Fri Oct 23, 2020 3:44 pm   Subject:
Paul
Thanks a lot for the rapid treating of this issue.

Kenneth
I am sorry for having been imprecise with "only the first 32 least significant bits are printed out". I implied herewith ...
  Topic: Limitation for binary output of 64-bit integers?
jlb

Replies: 7
Views: 777

PostForum: Support   Posted: Thu Oct 22, 2020 11:34 am   Subject: Limitation for binary output of 64-bit integers?
Only the first 32 least significant bits of KIND=4 integers are printed out while using B64 FORMAT descriptor.
PROGRAM bin
INTEGER(KIND=4),PARAMETER :: i=-1
WRITE(*,*) i
...
 
Page 1 of 1
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group