HughPhilly
Programmer
Hi guys,
I am a newby to Fortran programming, so this problem might be very simple to many of you.
Goal: Minimize internal function using Nelder-Mead subroutine. Internal function uses global variables..
Situation: Function is defined within program under 'contains'. So it is internal and it is defined by some global variables.. (My work environment is Linux Ubuntu 10.04, Gfortran, Fortran 90.)
Problem: When I compile the main and minimization subroutine (gfortran Internal_Function_Minimization.f90 Simples_routine.f90), I get a message 'undefined reference to internal function'.
I am attaching my code. It has two files. One is the main program file contains objective function to be minimized. The other file is Nelder-Mead Minimization subroutine.
The global variable is 'i' which is an iterator and it is used to define the internal function..
How can I hold the global variable and just minimize the internal function in terms of the local variables?
I really appreciate your help in advance.
I am a newby to Fortran programming, so this problem might be very simple to many of you.
Goal: Minimize internal function using Nelder-Mead subroutine. Internal function uses global variables..
Situation: Function is defined within program under 'contains'. So it is internal and it is defined by some global variables.. (My work environment is Linux Ubuntu 10.04, Gfortran, Fortran 90.)
Problem: When I compile the main and minimization subroutine (gfortran Internal_Function_Minimization.f90 Simples_routine.f90), I get a message 'undefined reference to internal function'.
I am attaching my code. It has two files. One is the main program file contains objective function to be minimized. The other file is Nelder-Mead Minimization subroutine.
The global variable is 'i' which is an iterator and it is used to define the internal function..
How can I hold the global variable and just minimize the internal function in terms of the local variables?
I really appreciate your help in advance.