source:
LMDZ4/branches/LMDZ4_V2_patch/libf/filtrez/acc.F
@
1422
Last change on this file since 1422 was 524, checked in by , 21 years ago | |
---|---|
|
|
File size: 271 bytes |
Line | |
---|---|
1 | ! |
2 | ! $Header$ |
3 | ! |
4 | subroutine acc(vec,d,im) |
5 | dimension vec(im,im),d(im) |
6 | do 10 j=1,im |
7 | do 9 i=1,im |
8 | 9 d(i)=vec(i,j)*vec(i,j) |
9 | sum=ssum(im,d,1) |
10 | sum=sqrt(sum) |
11 | do 10 i=1,im |
12 | 10 vec(i,j)=vec(i,j)/sum |
13 | return |
14 | end |
Note: See TracBrowser
for help on using the repository browser.