Author |
Message |
Topic: Beginner programmer: Allocatable in a function |
GS76
Replies: 10
Views: 6060
|
Forum: Support Posted: Thu Jun 04, 2020 6:29 pm Subject: Re: |
In that case, do note that you also have to modify code containing references to those functions.
In some instances, you may need to declare a new result variable for use in calling the subroutine ... |
Topic: Beginner programmer: Allocatable in a function |
GS76
Replies: 10
Views: 6060
|
Forum: Support Posted: Thu Jun 04, 2020 5:35 pm Subject: Re: |
Replace functions whose result type is an allocatable array by subroutines. For example,
Subroutine Ascend( A, B, X)
instead of
Function Ascend(A, B) result (X)
Thank you mecej ... |
Topic: Beginner programmer: Allocatable in a function |
GS76
Replies: 10
Views: 6060
|
Forum: Support Posted: Thu Jun 04, 2020 4:25 pm Subject: Re: |
FTN95 is a Fortran 95 compiler, with support for a few features from later versions of standard Fortran. Your program requires the "allocate on assignment" feature, which is not (yet) suppor ... |
Topic: Beginner programmer: Allocatable in a function |
GS76
Replies: 10
Views: 6060
|
Forum: Support Posted: Thu Jun 04, 2020 3:50 pm Subject: Beginner programmer: Allocatable in a function |
Hi all,
I am a beginner programmer and new to Fortran.
I found the following code it has other modules.
When I compile the following code, I get the following message.
Compiling file: modu ... |
|