forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 4 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Beginner programmer: Allocatable in a function
GS76

Replies: 10
Views: 6060

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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 ...
 
Page 1 of 1
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group