Recent content by fortrannewbe

  1. F

    Comp Sci Return vector from function (fortran 95)

    I tried a different compiler, and now both versions of the code above work. That is very strange.
  2. F

    Comp Sci Return vector from function (fortran 95)

    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...
  3. F

    Comp Sci Return vector from function (fortran 95)

    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...
Back
Top