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!

Search results for query: *

  1. hugochief

    Passing user-defined function as argument

    you are overkilling the problem man:) i found a simplest solution that really does what i wanted: function my_function(func,dfunc) interface function func(x) real, dimension(2), intent(in) :: x real :: func endfunction func function dfunc(x) real, dimension(2), intent(in) ...
  2. hugochief

    Passing user-defined function as argument

    not that I dont like your answer but I really knew it. the problem is that I have many different "dfunc", not just one, so Id like not to have to change "my_function" everytime I need a different "dfunc"!
  3. hugochief

    Passing user-defined function as argument

    Hello, Here is my main program: ... use func use mult ... print*, my_function(func,dfunc) ... Both func and dfunc are defined in module func: ... function func(x) real :: func ... endfunction func function dfunc real, dimension(2) :: dfunc ... endfunction dfunc Also, my_function is defined in...

Part and Inventory Search

Back
Top