Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

fcn subroutine is a symbolic link? 1

Status
Not open for further replies.

jiligeo

Geotechnical
Feb 24, 2005
145
Hi, I am working on a Fortran code. The code calls a subroutine ( call fcn )which is not defined in it.
I have asked the writer of code for more information about fcn subroutine and he answered me,

“The fcn subroutine is a symbolic link to a subroutine which is given in
a parameter list of another subroutine. Please referee to a Fortan
Handbook - this is standard Fortran.”

I could not understand that. Could somebody help me please? Where can I find some information about this command or method?

Regards
Jalil
 
Replies continue below

Recommended for you

Something like this
Code:
program indir
   external callee2
   external callee3

   call printer(callee2)
   call printer(callee3)
end

subroutine printer(subr)
   external subr
   integer ii

   ii = 10
   call subr(ii)
   print *, ii
end subroutine

subroutine callee2(ii)
   integer ii
   ii = ii + ii
end subroutine

subroutine callee3(ii)
   integer ii
   ii = ii + ii + ii
end subroutine

 
Dear XWB, thank you very much for your reply. Could you please introduce me a reference which explain this method?

Regards
Jalil
 
It is a technique I've used for years. I'll see if I can find a reference for it.
 
Thank you very much for your valuable help.

Regards
Jalil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor