/[lmdze]/trunk/dyn3d/ismax.f
ViewVC logotype

Contents of /trunk/dyn3d/ismax.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 81 - (show annotations)
Wed Mar 5 14:38:41 2014 UTC (10 years, 3 months ago) by guez
Original Path: trunk/dyn3d/ismax.f90
File size: 402 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
2 ! $Header: /home/cvsroot/LMDZ4/libf/dyn3d/ismax.F,v 1.1.1.1 2004/05/19
3 ! 12:53:07 lmdzadmin Exp $
4
5 FUNCTION ismax(n, sx, incx)
6
7 IMPLICIT NONE
8
9 INTEGER n, i, incx, ismax, ix
10 REAL sx((n-1)*incx+1), sxmax
11
12 ix = 1
13 ismax = 1
14 sxmax = sx(1)
15 DO i = 1, n - 1
16 ix = ix + incx
17 IF (sx(ix)>sxmax) THEN
18 sxmax = sx(ix)
19 ismax = i + 1
20 END IF
21 END DO
22
23 RETURN
24 END FUNCTION ismax
25

  ViewVC Help
Powered by ViewVC 1.1.21