Author |
Message |
Topic: Avoiding flicker with rapid %pl updates |
Kenneth_Smith
Replies: 8
Views: 544
|
Forum: ClearWin+ Posted: Sun Jan 19, 2025 11:58 am Subject: |
No problem Paul. It was worth an hour experimenting with these. I would have been delighted if I'd caught the wild goose, (or perhaps a wild haggis at this time of year in Scotland)! |
Topic: Avoiding flicker with rapid %pl updates |
Kenneth_Smith
Replies: 8
Views: 544
|
Forum: ClearWin+ Posted: Fri Jan 17, 2025 12:42 pm Subject: |
Paul,
Thanks for the two suggestions. I investigated these this morning.
With:
call FREEZE_WINDOW_CONTENTS@(hwnd)
call simpleplot_redraw@()
call UNFREEZE_WINDOW_CONTENT ... |
Topic: Avoiding flicker with rapid %pl updates |
Kenneth_Smith
Replies: 8
Views: 544
|
Forum: ClearWin+ Posted: Thu Jan 16, 2025 11:47 am Subject: |
Dan,
One disadvantage of the approach in my example code is that %pl[external] cannot have a callback. Understandable since you cannot detect mouse clicks etc in a memory resident graphics region, ... |
Topic: Avoiding flicker with rapid %pl updates |
Kenneth_Smith
Replies: 8
Views: 544
|
Forum: ClearWin+ Posted: Wed Jan 15, 2025 1:05 pm Subject: |
For reference here is the equivalent code, without the "no flicker" approach.
module demo
use clrwin
implicit none
real*8 :: arr(50)
integer :: gw = 900, gh = ... |
Topic: Avoiding flicker with rapid %pl updates |
Kenneth_Smith
Replies: 8
Views: 544
|
Forum: ClearWin+ Posted: Wed Jan 15, 2025 12:13 pm Subject: Avoiding flicker with rapid %pl updates |
The discussion about sorting in another thread reminded me of the short demo program below which was sitting on my desktop.
When a %pl is embedded in a window, if it is desired to continually updat ... |
Topic: Error 967 |
Kenneth_Smith
Replies: 1
Views: 545
|
Forum: 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: 1657
|
Forum: 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: 1657
|
Forum: 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: 250
|
Forum: 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: 1143
|
Forum: 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: 1103
|
Forum: 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: 1143
|
Forum: 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: 1143
|
Forum: 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: 472
|
Forum: 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: 1657
|
Forum: 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 ... |
|