source: LMDZ5/branches/testing/libf/filtrez/acc.F @ 2212

Last change on this file since 2212 was 1910, checked in by Laurent Fairhead, 11 years ago

Merged trunk changes r1860:1909 into testing branch

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 334 bytes
RevLine 
[524]1!
2! $Header$
3!
4        subroutine acc(vec,d,im)
5        dimension vec(im,im),d(im)
[962]6        do j=1,im
7          do i=1,im
8            d(i)=vec(i,j)*vec(i,j)
9          enddo
10          sum=ssum(im,d,1)
11          sum=sqrt(sum)
12          do i=1,im
13            vec(i,j)=vec(i,j)/sum
14          enddo
15        enddo
[524]16        return
17        end
Note: See TracBrowser for help on using the repository browser.