| 
                Last change
                  on this file since 1657 was
                  38,
                  checked in by emillour, 15 years ago
           | 
        
        
          | 
               
Ajout du modè Martien (mon LMDZ.MARS.BETA, du 28/01/2011) dans le rértoire mars, pour pouvoir suivre plus facilement les modifs. 
EM 
 
           | 
        
        | 
            File size:
            369 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 |       FUNCTION sdot (n, x,incx, y,incy) | 
|---|
| 2 |       IMPLICIT NONE | 
|---|
| 3 | c | 
|---|
| 4 |       integer n, incx, incy | 
|---|
| 5 |       real sdot | 
|---|
| 6 |       real x((n-1)*incx+1), y((n-1)*incy+1) | 
|---|
| 7 | c | 
|---|
| 8 |       integer i, ix, iy | 
|---|
| 9 | c | 
|---|
| 10 |       sdot = 0.0 | 
|---|
| 11 |       ix = 1 | 
|---|
| 12 |       iy = 1 | 
|---|
| 13 | c | 
|---|
| 14 |       do 10 i = 1, n | 
|---|
| 15 |          sdot = sdot + x(ix) * y(iy) | 
|---|
| 16 |          ix = ix + incx | 
|---|
| 17 |          iy = iy + incy | 
|---|
| 18 |    10 continue | 
|---|
| 19 | c | 
|---|
| 20 |       return | 
|---|
| 21 |       end | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.