Author |
Message |
Topic: Country coding in Fortran |
Kenneth_Smith
Replies: 8
Views: 506
|
Forum: General Posted: Mon Jun 05, 2023 11:59 pm Subject: |
Mecej4, Interesting. With my approach printing to the terminal, about a dozen of the characters in you example are not printed correctly (FTN95, gFortran and Ifort)
Clearwin+ has no problems displa ... |
Topic: Country coding in Fortran |
Kenneth_Smith
Replies: 8
Views: 506
|
Forum: General Posted: Mon Jun 05, 2023 10:37 pm Subject: |
This is not a Fortran issue, it is related to the windows settings on your machine.
If the following program does not run correctly on your machine:
CHARACTER(len=2) :: text( ... |
Topic: Issue with 64 bit compiler |
Kenneth_Smith
Replies: 9
Views: 1100
|
Forum: Support Posted: Sun Jun 04, 2023 2:34 pm Subject: |
Hi John,
Thanks for your feedback.
Well 15 years ago I was definitely a Fortran 77 programmer, but over time I have seen myself using the features of Fortran 95 and later standards.
Using mo ... |
Topic: Is the get_filtered_file@ call usable? |
Kenneth_Smith
Replies: 8
Views: 255
|
Forum: ClearWin+ Posted: Thu May 25, 2023 1:56 pm Subject: |
This look very similar to the error Robert was asking about concerning select_printer@. While I could replicate that problem, it did not persist after the next windows update. Might be worthwhile ch ... |
Topic: More Fortran 2003 and 2008 features |
Kenneth_Smith
Replies: 10
Views: 1770
|
Forum: Suggestions Posted: Thu May 25, 2023 1:35 pm Subject: |
Paul, thanks for taking the time to implement "back" for these three intrinsics. This will be very useful for future programs. |
Topic: Sample solution file locations |
Kenneth_Smith
Replies: 2
Views: 172
|
Forum: ClearWin+ Posted: Wed May 24, 2023 1:15 pm Subject: |
Try finding: Documents\FTN95 Examples\NET on you machine. |
Topic: Label error reading data from a file |
Kenneth_Smith
Replies: 2
Views: 613
|
Forum: General Posted: Sun May 21, 2023 11:29 am Subject: |
Assuming the data file input.txt is
*
123
*
123
123, abc
*
123
123, abc
123
*
123
*
The following program:
program p
implicit none
integer fileopened, nlines, readstat, i
character& ... |
Topic: Re if / then statement |
Kenneth_Smith
Replies: 6
Views: 1007
|
Forum: General Posted: Wed May 17, 2023 3:02 pm Subject: |
Generalising my previous post:
module string_mod
implicit none
integer, protected, allocatable :: location(:)
contains
subroutine locatechar(instring,searchchar,number ... |
Topic: Re if / then statement |
Kenneth_Smith
Replies: 6
Views: 1007
|
Forum: General Posted: Wed May 17, 2023 10:38 am Subject: |
Does this help? Space_loc(N) holds the location of the Nth occurrence of ichar(' ')
program test
implicit none
character(200) :: stringin
integer, dimension(200) : ... |
Topic: Intel withdrawing 32 bit Fortran Compiler |
Kenneth_Smith
Replies: 0
Views: 638
|
Forum: General Posted: Mon May 15, 2023 10:29 pm Subject: Intel withdrawing 32 bit Fortran Compiler |
Interesting item appeared on the "Start Page" of my PSCAD-EMTDC installation today.
The latest news coming from the Intel Fortran development team tells us that the future of the Intel 32 ... |
Topic: Converting string into array of characters |
Kenneth_Smith
Replies: 3
Views: 773
|
Forum: General Posted: Mon May 15, 2023 5:20 pm Subject: |
Expanding to use subroutines "String2array" and "Array2string":
implicit none
integer i, n
character(len=128) :: a2z, a2zcopy
character(len=1), alloca ... |
Topic: Protected attribute + allocatable arrays |
Kenneth_Smith
Replies: 2
Views: 379
|
Forum: Support Posted: Mon May 15, 2023 12:21 pm Subject: Protected attribute + allocatable arrays |
The recently introduced PROTECTED attribute for module variables works correctly for STATIC variables of both INTRINSIC and USER DEFINED types.
If the PROTECTED variable is an ALLOCATABLE array of ... |
Topic: Converting string into array of characters |
Kenneth_Smith
Replies: 3
Views: 773
|
Forum: General Posted: Mon May 15, 2023 12:11 pm Subject: |
implicit none
integer i, n
character(len=26) :: a2z, z2a
character(len=1) :: ch(26)
n = 26
a2z = ''
print'(A)', a2z
do i = 97, 97+n, 1
a2z ... |
Topic: This baffles me |
Kenneth_Smith
Replies: 13
Views: 1218
|
Forum: General Posted: Thu May 11, 2023 4:04 pm Subject: |
Zach,
It is not productive to pursue the question “why”, after it was established that the code is not aligned with the rules of Fortran.
In pursuing this, you are drawing incorrect conclusions ... |
Topic: This baffles me |
Kenneth_Smith
Replies: 13
Views: 1218
|
Forum: General Posted: Thu May 11, 2023 11:29 am Subject: |
The behaviour you observe indicates that the memory location the program is using to store the value n was filled with zeros by the program that previously used this location. |
|