replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: Search
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 748 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Error 967
Kenneth_Smith

Replies: 0
Views: 28

PostForum: Support   Posted: Sun Jan 12, 2025 6:20 pm   Subject: Error 967
Paul,

I think you need to look at this one.

!
! With either the 32 bit or 64 bit complier, with /checkmate the following
! error stops compilation at the line indicated:
!
! error 967 - ...
  Topic: warning 676 in recursive routines
Kenneth_Smith

Replies: 19
Views: 1200

PostForum: Support   Posted: Sun Jan 12, 2025 5:35 pm   Subject:
John,

The problem with using AI is you have to learn to ask the correct questions!

Here's my final attempt at this problem (for now anyway!)

In this case AI was very helpful! Although it's a ...
  Topic: warning 676 in recursive routines
Kenneth_Smith

Replies: 19
Views: 1200

PostForum: Support   Posted: Sat Jan 11, 2025 4:15 pm   Subject:
John,

Thanks for sharing this summary of your observations on this which are very useful.

This is clearly a thought provoking thread.

I have been experimenting with a random pivot. I don't s ...
  Topic: error 474 - Invalid expression in array constructor
Kenneth_Smith

Replies: 1
Views: 128

PostForum: Support   Posted: Thu Jan 09, 2025 3:22 am   Subject: error 474 - Invalid expression in array constructor
I think the error reported by the compiler in this case is not correct.

I don't understand how an implied do loop / array constructor can reference an intrinsic function, but not a function defin ...
  Topic: Factorial
Kenneth_Smith

Replies: 6
Views: 513

PostForum: Suggestions   Posted: Sun Jan 05, 2025 3:08 pm   Subject:
Lester, These answer both of your questions.

program q1
implicit none
integer :: n
real*8 :: fact
integer :: i
do i = 1, 25
n = i
fact = gamma( mi ...
  Topic: PRODUCT(A) when SIZE(A) = 0
Kenneth_Smith

Replies: 1
Views: 401

PostForum: 64-bit   Posted: Sun Jan 05, 2025 12:28 am   Subject: PRODUCT(A) when SIZE(A) = 0
The following code generates a run time access violation when compiled with the 64 bit compiler.

The 32 bit compiler returns the correct value of 1.d0

program bug_in_product
implicit none
real ...
  Topic: Factorial
Kenneth_Smith

Replies: 6
Views: 513

PostForum: Suggestions   Posted: Sat Jan 04, 2025 11:22 pm   Subject:
The code I posted earlier is not portable to other compilers, because of a programmer error!

Code below is, which explicitly deals with negative and zero values of n.

For n .ge. 1 the implied d ...
  Topic: Factorial
Kenneth_Smith

Replies: 6
Views: 513

PostForum: Suggestions   Posted: Sat Jan 04, 2025 9:47 pm   Subject:
Lester,

Using the 64 bit compiler, you could do this calculation in one line of fortran.

Use an implied do loop within an array constructor, and then apply the product intrinsic to the array.
...
  Topic: shiftr and shiftl
Kenneth_Smith

Replies: 2
Views: 324

PostForum: Suggestions   Posted: Thu Jan 02, 2025 3:39 pm   Subject: shiftr and shiftl
Please consider adding shiftr and shiftl to the wish list.

I had to resort to adding a ftn95 specific module in order to compile and run a much larger program with ftn95

Thanks

Ken

winap ...
  Topic: warning 676 in recursive routines
Kenneth_Smith

Replies: 19
Views: 1200

PostForum: Support   Posted: Wed Jan 01, 2025 10:55 am   Subject:
John,

You might want to look at this implementation, which is the fastest I have seen for large data sets. It sorts the input array and also returns index values.

https://github.com/gher-uliege ...
  Topic: ASIN(X) VS DASIN(X)
Kenneth_Smith

Replies: 8
Views: 841

PostForum: 64-bit   Posted: Mon Dec 30, 2024 1:27 pm   Subject:
Dan,

Try this. Everything in a single function.

winapp
Integer function LibraryVersion64Win()
use iso_fortran_env , only : compiler_version, compiler_options
implicit none
C_EX ...
  Topic: warning 676 in recursive routines
Kenneth_Smith

Replies: 19
Views: 1200

PostForum: Support   Posted: Mon Dec 30, 2024 11:44 am   Subject:
So my guess, was way out - again.

Adding (kind=3) to all integer declarations removes the warning.

program test
implicit none
integer(kind=3) iarray(7)
integer(kind=3) ...
  Topic: ASIN(X) VS DASIN(X)
Kenneth_Smith

Replies: 8
Views: 841

PostForum: 64-bit   Posted: Sun Dec 29, 2024 11:24 am   Subject:
Dan,

use iso_fortran_env , only : compiler_version

*should* hide everything else in the module.

program p
use iso_fortran_env , only : compiler_version
implicit none

write(*, ...
  Topic: ASIN(X) VS DASIN(X)
Kenneth_Smith

Replies: 8
Views: 841

PostForum: 64-bit   Posted: Sun Dec 29, 2024 10:19 am   Subject:
Dan,

iso_fortran_env is a "standard" module introduced in Fortran 2008.

COMPILER_VERSION and COMPILER_OPTIONS were added to the module as part of Fortran 2018.
  Topic: warning 676 in recursive routines
Kenneth_Smith

Replies: 19
Views: 1200

PostForum: Support   Posted: Sun Dec 29, 2024 10:00 am   Subject:
Steve,

I am guessing here, but if QUICKSORTDP_index and QSRT_PARTITIONDP_index are not contained within a module, since you have assumed size arrays (*), then the recursive QUICKSORTDP_index requir ...
 
Page 1 of 50 Goto page 1, 2, 3 ... 48, 49, 50  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group