Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling variables from subroutines

Status
Not open for further replies.

manueleo

Technical User
Feb 10, 2007
3
US
Hi,

I have fortran program, which has many subroutines. If one of these subroutines, functionB, gets a array variable, called A, from the calling function, functionA, does array A have to be assigned some value before being referenced by functionB? In order words, array A is allocated, but it is not assign to any value. If it has no value, is it possible to make array A as one of the arguments of function B?

Thank you.
 
Have to break up your question

1) If one of these subroutines, functionB, gets a array variable, called A, from the calling function, functionA, does array A have to be assigned some value before being referenced by functionB?
No

2) In order words, array A is allocated, but it is not assign to any value. If it has no value, is it possible to make array A as one of the arguments of function B?
Yes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top