Author |
Message |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Wed May 03, 2023 4:58 pm Subject: |
That is my understanding of AOA too. In my example, AOA should not be taking place, because b was already allocated. My assumption (which may be incorrect) was that because b's shape changed, some for ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Wed May 03, 2023 2:25 pm Subject: |
Hi Paul,
MANY thanks for your diligent work on this problem. Let me try the compiler switches and see what that effect is. If AOA has to be switched off, I can deal with that more easily than with ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Tue May 02, 2023 9:53 pm Subject: |
Understood Paul. Thanks for looking into this. I am loading a and b into the separate subprograms because typically the module contains a large number of subprograms, and I am looking to make availabl ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Tue May 02, 2023 2:30 pm Subject: |
Thanks Paul. I'm relieved you were able to isolate the bug. It has taken a great deal of work to locate the problem and then produce the small example.
Are you able to be more generic about what w ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Mon May 01, 2023 6:08 pm Subject: |
Here is an attempt to isolate the problem with the shape of an array being reassigned.
Module m1
Implicit None
Real, Dimension(:,:), Allocatable, Public :: b
Re ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Sun Apr 30, 2023 8:06 pm Subject: |
That would be interesting - if b were already allocated but got resized at the "not sure what happens here" line, that could result in some very difficult to track problems. |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Sat Apr 29, 2023 4:37 pm Subject: |
Many thanks to everyone's inputs. It has been helpful to know not to expect shape to "work" (if that is the correct word) when its argument is deallocated.
I don't know whether this is a ... |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Thu Apr 20, 2023 4:12 pm Subject: |
Indeed, I have tried CHECKMATE. But forgetting about the larger programme for now, is Shape not returning an incorrect result even in the simple example? Size also returns 2 after i is deallocated. |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Thu Apr 20, 2023 7:33 am Subject: |
Hi Paul,
I seem to get the same output ("2 F") regardless of which compiler options I use. |
Topic: Shape of deallocated array |
simon
Replies: 21
Views: 6176
|
Forum: Support Posted: Thu Apr 20, 2023 1:42 am Subject: Shape of deallocated array |
In the following program, FTN95 remembers the shape of the allocatable array after it is deallocated. In other compilers the call to Shape generates a run-time error.
Program p
Integer, Dimensio ... |
Topic: More Fortran 2003 and 2008 features |
simon
Replies: 10
Views: 1627
|
Forum: Suggestions Posted: Wed Apr 19, 2023 10:08 pm Subject: |
Paul, if the BLOCK structure is a lot of work, it is not a high priority for me. I'll use it if it's there, but I am not feeling much constrained without it. |
Topic: compiling clrwin$ with version 8.97 |
simon
Replies: 3
Views: 987
|
Forum: Support Posted: Sun Apr 16, 2023 6:14 pm Subject: compiling clrwin$ with version 8.97 |
When compiling clrwin$.f95 with version 8.97 a new error message appears at a few lines:
error 437 - No generic spec on enclosing INTERFACE BLOCK
The compilation appears to proceed ok by adding igno ... |
Topic: FORALL puzzle |
simon
Replies: 4
Views: 1240
|
Forum: Support Posted: Sat Apr 15, 2023 4:22 pm Subject: |
I believe that DO FORALL has been superseded by DO CONCURRENT |
Topic: More Fortran 2003 and 2008 features |
simon
Replies: 10
Views: 1627
|
Forum: Suggestions Posted: Tue Apr 04, 2023 4:31 pm Subject: More Fortran 2003 and 2008 features |
I notice that Paul requested us on Dec 05, 2022 to stop posting more suggestions to the "Fortran 2003 and 2008 features" topic https://forums.silverfrost.com/viewtopic.php?t=3480&start=1 ... |
Topic: FLUSH |
simon
Replies: 1
Views: 930
|
Forum: Support Posted: Fri Mar 17, 2023 7:24 pm Subject: FLUSH |
I've been asked to implement FLUSH into a program. FLUSH is a Fortran 2003 feature. I see that FTN95 already has FLUSH_FORTRAN_HANDLE@, which I think does the same thing. However, FLUSH_FORTRAN_HANDLE ... |
|