I am completely astonished. In Fortran 77 we used to do it all the time,
just assigning the subroutine or function name to a variable
which had to be declared EXTERNAL. All the programs of integration worked that
way.
Are you saying that this is not possible in Fortran anymore???
Alberto Fassò
On Thu, 17 Aug 2006, Aleksandar Donev wrote:
> On 8/17/06, Naomi Greenberg <[log in to unmask]> wrote:
> >
> > Is there a way to call a subroutine whose name is a variable? I want a
> > user to be able to pass a routine name to a program and have the program
> > call it without giving the subroutine a fixed name. Any advice is
> > appreciated.
> >
> As Tom said, this can only be done by using DLL's, see my webpage for an
> example of using C Interoperability in Fortran 2003 to do it:
> http://atom.princeton.edu/donev/F2x/
> Aleks
>
--
Alberto Fassò
SLAC-RP, MS 48, 2575 Sand Hill Road, Menlo Park CA 94025
Phone: (1 650) 926 4762 Fax: (1 650) 926 3569
[log in to unmask]
|