/[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 30 by guez, Thu Apr 1 09:07:28 2010 UTC revision 33 by guez, Fri Apr 9 10:56:14 2010 UTC
# Line 1  Line 1 
1  PROGRAM gcm  PROGRAM gcm
2    
3    ! General circulation model of LMD    ! General circulation model of LMD
   
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    
6    ! Avec coordonnées verticales hybrides, avec nouveaux opérateurs de    ! Avec coordonnées verticales hybrides, avec nouveaux opérateurs de
# Line 15  PROGRAM gcm Line 14  PROGRAM gcm
14    ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4    ! Pour Van-Leer plus vapeur d'eau saturée : iadv(1)=4
15    ! Pour Van-Leer : iadv=10    ! Pour Van-Leer : iadv=10
16    
   use abort_gcm_m, only: abort_gcm  
17    use clesphys2, only: read_clesphys2    use clesphys2, only: read_clesphys2
18    use com_io_dyn, only: histid, histvid, histaveid    use com_io_dyn, only: histid, histvid, histaveid
19    use comconst, only: daysec, cpp, dtvr, g, rad, r, initialize    use comconst, only: daysec, cpp, dtvr, g, rad, r, initialize
# Line 97  PROGRAM gcm Line 95  PROGRAM gcm
95    ! Lecture du fichier "start.nc" :    ! Lecture du fichier "start.nc" :
96    CALL dynetat0(vcov, ucov, teta, q, masse, ps, phis, time_0)    CALL dynetat0(vcov, ucov, teta, q, masse, ps, phis, time_0)
97    
   ! Lecture des paramètres de contrôle pour la simulation :  
   ! on recalcule éventuellement le pas de temps  
   IF (MOD(day_step, iperiod) /= 0) THEN  
      call abort_gcm(modname = "gcm", message = &  
           'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &  
           ierr = 1)  
   ENDIF  
   
   IF (MOD(day_step,iphysiq)/=0) THEN  
      call abort_gcm(modname = "gcm", message = &  
           'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &  
           ierr = 1)  
   ENDIF  
   
98    ! On remet le calendrier à zero si demandé:    ! On remet le calendrier à zero si demandé:
99    if (annee_ref /= anneeref .or. day_ref /= dayref) then    if (annee_ref /= anneeref .or. day_ref /= dayref) then
100       print *, 'Attention : les dates initiales lues dans le fichier ' // &       print *, 'Attention : les dates initiales lues dans le fichier ' // &
# Line 129  PROGRAM gcm Line 113  PROGRAM gcm
113       raz_date = .false.       raz_date = .false.
114    endif    endif
115    
116    ! Initialisation des constantes dynamiques :    ! on recalcule éventuellement le pas de temps
117    zdtvr = daysec / REAL(day_step)    zdtvr = daysec / REAL(day_step)
118    IF (dtvr /= zdtvr) THEN    IF (dtvr /= zdtvr) THEN
119       print *, 'Warning: the time steps in the ".def" file and in ' // &       print *, 'Warning: the time steps in the ".def" file and in ' // &
# Line 139  PROGRAM gcm Line 123  PROGRAM gcm
123       print *, 'Using the value from the ".def" file.'       print *, 'Using the value from the ".def" file.'
124       dtvr = zdtvr       dtvr = zdtvr
125    ENDIF    ENDIF
126    
127    CALL iniconst    CALL iniconst
128    
129    ! Initialisation de la géometrie :    ! Initialisation de la géometrie :

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

  ViewVC Help
Powered by ViewVC 1.1.21