Author |
Message |
Topic: Confusing difference |
Kenneth_Smith
Replies: 7
Views: 144
|
Forum: Support Posted: Tue Oct 08, 2024 3:46 pm Subject: |
This is a contrived example, but it illustrates Paul's point about 64 bit executables not being the "fix all" answer to floating point issues.
program p
use iso_fortran_env
implicit none
... |
Topic: Confusing difference |
Kenneth_Smith
Replies: 7
Views: 144
|
Forum: Support Posted: Mon Oct 07, 2024 4:31 pm Subject: |
Running John's program with FTN95 v9.03.0.
The 32 bit complier returns:
Vern : FTN95 v9.03.0
a = 0.333333333333E+00
b = 0.666666666667E+00
a + b = 0.100000000000E+01
c = 0.100000000000E+0 ... |
Topic: G0 format specifier |
Kenneth_Smith
Replies: 3
Views: 676
|
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: 441
|
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: 676
|
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: 639
|
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: 1089
|
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: 1089
|
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: 2667
|
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: 2667
|
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: 1385
|
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: 2667
|
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: 2667
|
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: 1385
|
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: 4647
|
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
... |
|