Changeset 5105 for LMDZ6/branches/Amaury_dev/libf/misc/ismin.f90
- Timestamp:
- Jul 23, 2024, 7:14:34 PM (3 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/misc/ismin.f90
r5104 r5105 2 2 ! $Header$ 3 3 4 5 c 6 7 c 8 integern,i,incx,ismin,ix9 realsx((n-1)*incx+1),sxmin10 c 11 12 13 14 15 16 17 18 19 20 21 c 22 return 23 end 24 C 4 FUNCTION ismin(n,sx,incx) 5 ! 6 IMPLICIT NONE 7 ! 8 integer :: n,i,incx,ismin,ix 9 real :: sx((n-1)*incx+1),sxmin 10 ! 11 ix=1 12 ismin=1 13 sxmin=sx(1) 14 DO i=1,n-1 15 ix=ix+incx 16 if(sx(ix)<sxmin) then 17 sxmin=sx(ix) 18 ismin=i+1 19 endif 20 ENDDO 21 ! 22 23 end function ismin 24 !
Note: See TracChangeset
for help on using the changeset viewer.