Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (738 Bytes)

1
      Subroutine matgen( m, n, a, lda, b )
2
! -----------------------------------------------------------------------
3
      Use        numerics
4
      Use        dist_module
5
      Implicit   None
6

    
7
      Integer  :: m, n, lda
8
      Real(l_) :: a(lda,*), b(*)
9
      Real(l_) :: ran1, val
10
      Integer  :: idum
11
      Integer  :: i, j
12
! -----------------------------------------------------------------------
13
      idum = -251057
14
      Do i = 1, m
15
         b(i) = 0.0_l_
16
         Do j = 1, m
17
            val = ran1( idum )
18
            b(i) = b(i) + val
19
            If ( me == owner(j) ) a(i,localindex(j)) = val
20
         End Do
21
      End Do
22
! -----------------------------------------------------------------------
23
      End Subroutine matgen