/[lmdze]/trunk/Sources/bibio/acc.f
ViewVC logotype

Annotation of /trunk/Sources/bibio/acc.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (hide annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 2 months ago) by guez
Original Path: trunk/filtrez/acc.f90
File size: 377 byte(s)
 Converted to free source form files which were still in fixed source
form. The conversion was done using the polish mode of the NAG Fortran
Compiler.

In addition to converting to free source form, the processing of the
files also:

-- indented the code (including comments);

-- set Fortran keywords to uppercase, and set all other identifiers
to lower case;

-- added qualifiers to end statements (for example "end subroutine
conflx", instead of "end");

-- changed the terminating statements of all DO loops so that each
loop ends with an ENDDO statement (instead of a labeled continue).

1 guez 81
2     ! $Header: /home/cvsroot/LMDZ4/libf/filtrez/acc.F,v 1.1.1.1 2004/05/19
3     ! 12:53:09 lmdzadmin Exp $
4    
5     SUBROUTINE acc(vec, d, im)
6     DIMENSION vec(im, im), d(im)
7    
8     DO j = 1, im
9     DO i = 1, im
10     d(i) = vec(i, j)*vec(i, j)
11     END DO
12     sum = ssum(im, d, 1)
13     sum = sqrt(sum)
14     DO i = 1, im
15     vec(i, j) = vec(i, j)/sum
16     END DO
17     END DO
18     RETURN
19     END SUBROUTINE acc

  ViewVC Help
Powered by ViewVC 1.1.21