Quote:
Dino R. wrote:
Ah, thanks a lot. This is kind of obvious, but I'm still surprised that the default behavior is to start all indices from 1.
To do otherwise puts a big burden on the compiler that is better suited in the hands of the programmer. Its also the reason I deal with a lot of code that resorts to
function func(u,v,w,ib,ie,jb,je,kb,ke)
integer :: ib,ie,jb,je,kb,ke
real, dimension(ib:ie) :: u
real, dimension(jb,je) :: v
real, dimension(kb:ke) :: w
Quote:
To do otherwise puts a big burden on the compiler that is better suited in the hands of the programmer. Its also the reason I deal with a lot of code that resorts to