But I think it is possible to declare a function as an array, because it works when I do it in the following order:
program testprogram
use testmodule
real :: b = 15
print*, testfunction(b)contains
function testfunction(a)
real, dimension(3) :: testfunction
real :: a...
Hi,
i have some problems to return a array or vector from a function that is located in a fortran-module. If i put the function inside the main program block with a "contains" it works, but why does the following not work? Does anyone have an idea?
Thanks
module testmodule
contains...