title: Fortran: Allocatable variables in modules
body: <p>I want to use an array Ar(-3:3, 5), which is an allocatable variable in the module global and allocate it in one subroutine and access it in the next subroutine (see code snippets below). Will the indexing in the second subroutine be from -3 to 3 and from 1 to 5, or do I have to specify that in the subroutine?</p>
  
  <pre><code>module global
     real, allocatable(:,:) :: Ar
  end module global
  
  subroutine allocateAr
     use global
  
     ALLOCATE(Ar(-3:3, 5))
  end subroutine allocateAr
  
  subroutine useAr
     use global
  
     Ar(-3,1)=3.0  !is this -3,1 here or do I have to use 1,1????
  end subroutine useAr
  </code></pre>