source:
LMDZ4/trunk/libf/filtrez/acc.F
@
752
Last change on this file since 752 was 524, checked in by , 20 years ago | |
---|---|
|
|
File size: 271 bytes |
Rev | Line | |
---|---|---|
[524] | 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.