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) ...
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"!
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.