/[lmdze]/trunk/dyn3d/ismin.f90
ViewVC logotype

Contents of /trunk/dyn3d/ismin.f90

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
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/ismin.F,v 1.1.1.1 2004/05/19
3 ! 12:53:07 lmdzadmin Exp $
4
5 FUNCTION ismin(n, sx, incx)
6
7 IMPLICIT NONE
8
9 INTEGER n, i, incx, ismin, ix
10 REAL sx((n-1)*incx+1), sxmin
11
12 ix = 1
13 ismin = 1
14 sxmin = sx(1)
15 DO i = 1, n - 1
16 ix = ix + incx
17 IF (sx(ix)<sxmin) THEN
18 sxmin = sx(ix)
19 ismin = i + 1
20 END IF
21 END DO
22
23 RETURN
24 END FUNCTION ismin
25

  ViewVC Help
Powered by ViewVC 1.1.21