/[lmdze]/trunk/dyn3d/gcm.f
ViewVC logotype

Diff of /trunk/dyn3d/gcm.f

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33 by guez, Fri Apr 9 10:56:14 2010 UTC revision 36 by guez, Thu Dec 2 17:11:04 2010 UTC
# Line 1  Line 1 
1  PROGRAM gcm  PROGRAM gcm
2    
3    ! General circulation model of LMD    ! Authors: P. Le Van, L. Fairhead, F. Hourdin
4    ! From "gcm.F", version 1.4, 2006/04/04 15:05:16    ! From "gcm.F", version 1.4, 2006/04/04 15:05:16
5      ! General circulation model of LMD
6    ! Avec coordonnées verticales hybrides, avec nouveaux opérateurs de    ! Avec coordonnées verticales hybrides, avec nouveaux opérateurs de
7    ! dissipation * (gradiv2, divgrad2, nxgraro2)    ! dissipation "*" (gradiv2, divgrad2, nxgraro2)
   
   ! Authors: P. Le Van, L. Fairhead, F. Hourdin  
   
8    ! Possibilité de choisir le schéma pour l'advection de "q", en    ! Possibilité de choisir le schéma pour l'advection de "q", en
9    ! modifiant "iadv" dans "traceur.def".    ! modifiant "iadv" dans "traceur.def".
   
10    ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4    ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4
11    ! Pour Van-Leer : iadv=10    ! Pour Van-Leer : iadv=10
12    
# Line 95  PROGRAM gcm Line 91  PROGRAM gcm
91    ! Lecture du fichier "start.nc" :    ! Lecture du fichier "start.nc" :
92    CALL dynetat0(vcov, ucov, teta, q, masse, ps, phis, time_0)    CALL dynetat0(vcov, ucov, teta, q, masse, ps, phis, time_0)
93    
94    ! On remet le calendrier à zero si demandé:    ! On remet le calendrier à zero si demandé :
95    if (annee_ref /= anneeref .or. day_ref /= dayref) then    if (annee_ref /= anneeref .or. day_ref /= dayref) then
96       print *, 'Attention : les dates initiales lues dans le fichier ' // &       print *, 'Attention : les dates initiales lues dans le fichier ' // &
97            '"start" ne correspondent pas à celles lues dans "gcm.def".'            '"start" ne correspondent pas à celles lues dans "gcm.def".'
# Line 113  PROGRAM gcm Line 109  PROGRAM gcm
109       raz_date = .false.       raz_date = .false.
110    endif    endif
111    
112    ! on recalcule éventuellement le pas de temps    ! On recalcule éventuellement le pas de temps :
113    zdtvr = daysec / REAL(day_step)    zdtvr = daysec / REAL(day_step)
114    IF (dtvr /= zdtvr) THEN    IF (dtvr /= zdtvr) THEN
115       print *, 'Warning: the time steps in the ".def" file and in ' // &       print *, 'Warning: the time steps in the ".def" file and in ' // &
# Line 124  PROGRAM gcm Line 120  PROGRAM gcm
120       dtvr = zdtvr       dtvr = zdtvr
121    ENDIF    ENDIF
122    
123    CALL iniconst    CALL iniconst
124      CALL inigeom ! initialisation de la géometrie
125    ! Initialisation de la géometrie :    CALL inifilr ! initialisation du filtre
   CALL inigeom  
   
   ! Initialisation du filtre :  
   CALL inifilr  
   
126    CALL inidissip    CALL inidissip
127    call init_dyn_phy    call init_dyn_phy
128    
# Line 157  PROGRAM gcm Line 148  PROGRAM gcm
148       ! (that value of "cv_2d" is used twice in "zcvfi")       ! (that value of "cv_2d" is used twice in "zcvfi")
149    
150       airefi = pack(aire_2d, dyn_phy)       airefi = pack(aire_2d, dyn_phy)
151       print *, 'Attention : vitesse verticale nulle dans la physique.'       CALL iniphysiq(klon, llm, latfi, lonfi, airefi, zcufi, zcvfi, rad, g, r, &
152       CALL iniphysiq(klon, llm, latfi, lonfi, airefi, &            cpp)
           zcufi, zcvfi, rad, g, r, cpp)  
153    ENDIF    ENDIF
154    
155    ! Initialisation des entrées-sorties :    ! Initialisation des entrées-sorties :
# Line 174  PROGRAM gcm Line 164  PROGRAM gcm
164         t_ops = iperiod * zdtvr, t_wrt = periodav * daysec)         t_ops = iperiod * zdtvr, t_wrt = periodav * daysec)
165    
166    ! Choix des fréquences de stockage pour le hors-ligne :    ! Choix des fréquences de stockage pour le hors-ligne :
167    istdyn = day_step / 4     ! stockage toutes les 6 h = 1 jour / 4    istdyn = day_step / 4 ! stockage toutes les 6 h = 1 jour / 4
168    istphy = istdyn / iphysiq        istphy = istdyn / iphysiq    
169    
170    ! Intégration temporelle du modèle :    ! Intégration temporelle du modèle :

Legend:
Removed from v.33  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.21