Statistics
| Branch: | Revision:

root / synthbench / euroben-dm / mod2a / bsaddr.f @ 0:839f52ef7657

History | View | Annotate | Download (969 Bytes)

1
      Subroutine bsaddr
2
! ----------------------------------------------------------------------
3
! --- Routine 'bsaddr' calculates the offsets that occur when local
4
!     data must be copied into a global one that combines all local
5
!     data. As the sizes of the local arrays need not be the same,
6
!     offsets cannot be generated with local knowledge only.
7
!
8
! --- Input:  - Integer nodes              (via Module dist_module) 
9
!             - Integer sizes(0:maxnod-1)  (via Module dist_module)
10
! --- Output: - Integer offset(0:maxnod-1) (via Module dist_module)
11
! ----------------------------------------------------------------------
12
      Use        dist_module
13

    
14
      Integer :: i
15
! ----------------------------------------------------------------------
16
      offset(0) = 0
17
      Do i = 1, nodes - 1
18
         offset(i) = offset(i-1) + sizes(i-1)
19
      End Do
20
! ----------------------------------------------------------------------
21
      End Subroutine bsaddr