| 
                Last change
                  on this file since 3172 was
                  1441,
                  checked in by emillour, 10 years ago
           | 
        
        
          | 
               
Updates in common dynamics (seq and ) to keep up with updates 
in LMDZ5 (up to LMDZ5 trunk, rev 2250): 
 
- compilation:
 - added test in grid/dimension/makdim to check that # of longitudes
is a multiple of 8
 
 
Bug correction concerning zoom (cf LMDZ5 rev 2218) 
 
- coefpoly.F becomes coefpoly_m.F90 (in misc)
 - fxhyp.F => fxhyp_m.F90 , fyhyp.F => fyhyp_m.F90
 - new routines for zoom: invert_zoom_x_m.F90 and principal_cshift_m.F90
 - inigeom.F adapted to new zoom definition routines
 - fluxstokenc.F : got rid of calls to initial0()
 
 - dyn3d:
 - advtrac.F90 : got rid of calls to initial0()
 - conf_gcm.F90 : cosmetic changes and change in default dzoomx,dzoomy values
 - guide_mod.F90 : followed updates from Earth Model
 - gcm.F is now gcm.F90
 
 - dyn3dpar:
 - advtrac_p.F90, covcont_p.F90, mod_hallo.F90 : cosmetic changes
 - conf_gcm.F90 : cosmetic and changed in default dzoomx,dzoomy values
 - parallel_lmdz.F90 : updates to keep up with Earth model
 
 - misc:
 - arth.F90 becomes arth_m.F90
 - wxios.F90 updated wrt Earth model changes
 - nrtype.F90 and coefpoly_m.F90 added
 - ran1.F, sort.F, minmax.F, minmax2.F, juldate.F moved over from dyn3d_common
 
 
EM 
 
           | 
        
        | 
            File size:
            635 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | ! | 
|---|
| 2 | ! $Header$ | 
|---|
| 3 | ! | 
|---|
| 4 | C | 
|---|
| 5 | C | 
|---|
| 6 |       SUBROUTINE sort(n,d) | 
|---|
| 7 | c | 
|---|
| 8 | c     P.Le Van | 
|---|
| 9 | c       | 
|---|
| 10 | c...  cette routine met le tableau d  dans l'ordre croissant  .... | 
|---|
| 11 | cc   ( pour avoir l'ordre decroissant,il suffit de remplacer l'instruc | 
|---|
| 12 | c      tion  situee + bas  IF(d(j).LE.p)  THEN     par | 
|---|
| 13 | c                           IF(d(j).GE.p)  THEN | 
|---|
| 14 | c | 
|---|
| 15 |  | 
|---|
| 16 |       INTEGER n | 
|---|
| 17 |       REAL d(n) , p | 
|---|
| 18 |       INTEGER i,j,k | 
|---|
| 19 |  | 
|---|
| 20 |       DO i=1,n-1 | 
|---|
| 21 |         k=i | 
|---|
| 22 |         p=d(i) | 
|---|
| 23 |         DO j=i+1,n | 
|---|
| 24 |          IF(d(j).LE.p) THEN | 
|---|
| 25 |            k=j | 
|---|
| 26 |            p=d(j) | 
|---|
| 27 |          ENDIF | 
|---|
| 28 |         ENDDO | 
|---|
| 29 |  | 
|---|
| 30 |        IF(k.ne.i) THEN | 
|---|
| 31 |          d(k)=d(i) | 
|---|
| 32 |          d(i)=p | 
|---|
| 33 |        ENDIF | 
|---|
| 34 |       ENDDO | 
|---|
| 35 |  | 
|---|
| 36 |        RETURN | 
|---|
| 37 |        END | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.