Changeset 5117 for LMDZ6/branches/Amaury_dev/libf/obsolete
- Timestamp:
- Jul 24, 2024, 4:23:34 PM (4 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/obsolete
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/obsolete/regr1_step_av_m.F90
r5086 r5117 1 ! Amaury (07/24): ce module n'est utilisé nulle part à part dans obsolete/, où il en existe déjà une autre version.... 2 1 3 ! $Id$ 2 4 module regr1_step_av_m -
LMDZ6/branches/Amaury_dev/libf/obsolete/sort.f90
r5116 r5117 1 2 1 ! $Header$ 3 2 4 3 ! 5 4 ! 6 SUBROUTINE sort(n, d)5 SUBROUTINE sort(n, d) 7 6 ! 8 7 ! P.Le Van … … 15 14 16 15 INTEGER :: n 17 REAL :: d(n) 18 INTEGER :: i, j,k16 REAL :: d(n), p 17 INTEGER :: i, j, k 19 18 20 DO i =1,n-121 k =i22 p =d(i)23 DO j =i+1,n24 IF(d(j)<=p) THEN25 k=j26 p=d(j)27 ENDIF19 DO i = 1, n - 1 20 k = i 21 p = d(i) 22 DO j = i + 1, n 23 IF(d(j)<=p) THEN 24 k = j 25 p = d(j) 26 ENDIF 28 27 ENDDO 29 28 30 IF(k/=i) THEN31 d(k)=d(i)32 d(i)=p33 ENDIF29 IF(k/=i) THEN 30 d(k) = d(i) 31 d(i) = p 32 ENDIF 34 33 ENDDO 35 34 36 37 35 END SUBROUTINE sort
Note: See TracChangeset
for help on using the changeset viewer.