still having troubles with func in FRPRMN


awest
11-21-2003, 02:56 PM
Hi All,

I'm still having troubles with the two functions func, and dfunc used in FRPRMN.

In this subroutine, the function names are not passed as actual arguments in the subroutine call (Nor are they passed on in this way to subprocedures such as linmin). They are external procedures whose names are supplied to the subroutine through an interface block. Within this interface block the functions are identified as "func" and "dfunc". Now,as far as I know, when I write and place the functions specific to my problem, say, below my main program they must have names func and dfunc.

But what if I want to use FRPRMN twice with two different functions in the same main program? I can't have two "funcs" and two "dfuncs". But if I give them different names, the subroutine doesn't recognize them.

I realize this is more of a F90 question than a NR question, but can anybody help me?