source:
trunk/LMDZ.GENERIC/libf/bibio/ismin.F
@
1400
| Last change on this file since 1400 was 135, checked in by , 14 years ago | |
|---|---|
| File size: 311 bytes | |
| Line | |
|---|---|
| 1 | FUNCTION ismin(n,sx,incx) |
| 2 | c |
| 3 | IMPLICIT NONE |
| 4 | c |
| 5 | integer n,i,incx,ismin,ix |
| 6 | real sx((n-1)*incx+1),sxmin |
| 7 | c |
| 8 | ix=1 |
| 9 | ismin=1 |
| 10 | sxmin=sx(1) |
| 11 | DO i=1,n-1 |
| 12 | ix=ix+incx |
| 13 | if(sx(ix).lt.sxmin) then |
| 14 | sxmin=sx(ix) |
| 15 | ismin=i+1 |
| 16 | endif |
| 17 | ENDDO |
| 18 | c |
| 19 | return |
| 20 | end |
Note: See TracBrowser
for help on using the repository browser.
