Changeset 1250 for LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/cray.F
- Timestamp:
- Oct 29, 2009, 2:55:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/cray.F
r774 r1250 13 13 real sx((n-1)*incx+1),sy((n-1)*incy+1) 14 14 c 15 if (incx.eq.1.and.incy.eq.1) then 16 do 10 i=1,n 17 sy(i)=sx(i) 18 10 continue 19 else 15 20 iy=1 16 21 ix=1 17 do 1 0i=1,n22 do 11 i=1,n 18 23 sy(iy)=sx(ix) 19 24 ix=ix+incx 20 25 iy=iy+incy 21 10 continue 26 11 continue 27 endif 22 28 c 23 29 return … … 32 38 c 33 39 ssum=0. 40 if (incx.eq.1) then 41 do 10 i=1,n 42 ssum=ssum+sx(i) 43 10 continue 44 else 34 45 ix=1 35 do 1 0i=1,n46 do 11 i=1,n 36 47 ssum=ssum+sx(ix) 37 48 ix=ix+incx 38 10 continue 49 11 continue 50 endif 39 51 c 40 52 return
Note: See TracChangeset
for help on using the changeset viewer.