Well the functions have all the same arguments...
But i dont want them to have the same name
I just want to define them all together in a subroutine file
separated from the main program.
In my code i use a really big number of functions f,g,... which i define the following way:
real function f(a,b,c)
...
end function f
real function g(a,b,c)
...
end function g
.
.
Does anyone know a way to define these functions all together, in order to make my code shorter???
Thanx...
I still cant do it...
gummibaer thanx for ur code:
Why do u use a logical function instead of a subroutine??
I wrote a more nderstandable code so u can see what i want to do
Now i get a segmentation error in the subroutine (im sure that the indices are correct)
I think that redefining L in...
I have an array R defined as follows:
real, dimension(:,:), pointer, save :: R
so i guess R is assigned with the ALLOCATABLE attribute
Starting the code R becomes (100,100)
In a point I want a subroutine(Ro) that takes R(100,100) and extends dimensions giving a R(102,102)
In the subroutine i...
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.