Author |
Message |
Topic: G0 format specifier |
Kenneth_Smith
Replies: 3
Views: 387
|
Forum: Suggestions Posted: Tue Oct 01, 2024 12:50 pm Subject: |
Thanks Paul,
You are super fast and efficient.
Much appreciated.
Ken |
Topic: CONTAINS apparently not recognised |
Kenneth_Smith
Replies: 2
Views: 242
|
Forum: Support Posted: Sat Sep 28, 2024 7:46 pm Subject: |
An assignment such as easting =456654, must be within a subroutine or function that is within the contains section of the module.
Also IMPLICIT NONE must come immediately after any USE statements, ... |
Topic: G0 format specifier |
Kenneth_Smith
Replies: 3
Views: 387
|
Forum: Suggestions Posted: Wed Sep 25, 2024 10:36 am Subject: G0 format specifier |
Perhaps the new (2018) G0 format specifier should be added to the wish list.
write(*,'(G0)') epsilon(1.d0)
end
This appeared in some code I was recently sent by a colle ... |
Topic: Why this is forbidden ? |
Kenneth_Smith
Replies: 5
Views: 504
|
Forum: General Posted: Wed Sep 25, 2024 10:24 am Subject: |
I think you a trying to break the Fortran rules. iFort says:
error #6159: A component cannot be an array if the encompassing structure is an array.
PS I looked into this a little more. For ... |
Topic: Birth defect of Clearwin |
Kenneth_Smith
Replies: 9
Views: 770
|
Forum: ClearWin+ Posted: Mon Sep 23, 2024 2:15 pm Subject: |
Dan, I don't think that's unreasonable, since the value may be changed by the user and the displayed value needs to "reformatted". |
Topic: Birth defect of Clearwin |
Kenneth_Smith
Replies: 9
Views: 770
|
Forum: ClearWin+ Posted: Sun Sep 22, 2024 4:32 pm Subject: |
use clrwin
real*8 :: a = 12345678546665456.d0
i = winio@('a = %18`rf%nl&',a)
i = winio@('a = %12`rf%nl&',a)
i = winio@('a = %6`rf%nl', a)
end |
Topic: format mismatch |
Kenneth_Smith
Replies: 12
Views: 2509
|
Forum: 64-bit Posted: Wed Jul 17, 2024 10:36 am Subject: |
Paul,
Also B with real data.
implicit none
real :: number = 123.987
write(*,'(B32.32)') number
end
Ken |
Topic: format mismatch |
Kenneth_Smith
Replies: 12
Views: 2509
|
Forum: 64-bit Posted: Wed Jul 17, 2024 8:55 am Subject: |
jlb, int2bin is the solution to one of a series of simple Fortran tutorial exercises I have been developing recently, so it came to mind before the "B" format. |
Topic: Plato crashes, 64 bit complier /Checkmate |
Kenneth_Smith
Replies: 3
Views: 1318
|
Forum: Support Posted: Wed Jul 17, 2024 8:37 am Subject: |
Thanks for confirming this is a known and fixed problem.
I was very confused on Monday.
Ken |
Topic: format mismatch |
Kenneth_Smith
Replies: 12
Views: 2509
|
Forum: 64-bit Posted: Tue Jul 16, 2024 11:48 am Subject: |
I did not see an error in my example, but then I missed the really obvious case:
implicit none
real :: number = 123.987
print'(Z8)', number
end
which should also return 4 ... |
Topic: format mismatch |
Kenneth_Smith
Replies: 12
Views: 2509
|
Forum: 64-bit Posted: Tue Jul 16, 2024 10:35 am Subject: |
You can use TRANSFER to convert the bit pattern of the real number to an integer number, and then print that integer in hex.
implicit none
real :: number
integer :: i
cha ... |
Topic: Plato crashes, 64 bit complier /Checkmate |
Kenneth_Smith
Replies: 3
Views: 1318
|
Forum: Support Posted: Mon Jul 15, 2024 2:14 pm Subject: Plato crashes, 64 bit complier /Checkmate |
Can anybody replicate the crash of Plato as demonstrated here?
https://www.youtube.com/watch?v=rlJGgMx1meQ
The observed behaviour only occurs with the 64 bit compilier, and not 32 bit.
The ... |
Topic: %gr, metafiles and clipboard |
Kenneth_Smith
Replies: 2
Views: 4610
|
Forum: ClearWin+ Posted: Tue Mar 12, 2024 1:37 pm Subject: |
This works for me. (FTN ver 9.00). After pressing the TOCB menu item, I can paste the graphics region into word etc.
winapp
module s_mod
use clrwin
implicit none
integer gw, gh
contains
... |
Topic: Allocate on assignment to grow an array. |
Kenneth_Smith
Replies: 25
Views: 11306
|
Forum: Support Posted: Wed Jan 31, 2024 1:54 pm Subject: |
John,
It gets interesting if the lower bound of the source array is not 1. Hopefully this example illustrates this particular devilry.
real, allocatable :: a(:), b(:& ... |
Topic: Allocate on assignment to grow an array. |
Kenneth_Smith
Replies: 25
Views: 11306
|
Forum: Support Posted: Sat Jan 27, 2024 9:51 am Subject: |
Thanks Paul, I think that will fix John's issue. |
|