Statistics
| Branch: | Revision:

root / synthbench / euroben-dm / mod2f / .svn / text-base / cntdpls.f.svn-base @ 0:839f52ef7657

History | View | Annotate | Download (980 Bytes)

1
      Subroutine cntdpls( scnts, sdpls, rcnts, rdpls )
2
! --------------------------------------------------------------------
3
! --- Fills the arrays describing the various sizes of the blocks
4
!     that are sent through alltoallv and reordered afterwards.
5
! --------------------------------------------------------------------
6
      Use        mpi_module ! Contains #procs and sizes
7
      Implicit   None
8

    
9
      Integer :: scnts(0:nodes-1), sdpls(0:nodes-1),
10
     &           rcnts(0:nodes-1), rdpls(0:nodes-1)
11

    
12
      Integer :: k
13
! --------------------------------------------------------------------
14
      scnts = sizes(me,2)*sizes(:,1)
15
      sdpls(0) = 0
16
      Do k = 1, nodes - 1
17
         sdpls(k) = sdpls(k-1) + scnts(k-1)
18
      End Do
19
      rcnts = sizes(me,1)*sizes(:,2)
20
      rdpls(0) = 0
21
      Do k = 1, nodes - 1
22
         rdpls(k) = rdpls(k-1) + rcnts(k-1)
23
      End Do
24
! --------------------------------------------------------------------
25
      End Subroutine cntdpls