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

Diff of /trunk/dyn3d/conf_gcm.f

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

trunk/libf/dyn3d/conf_gcm.f90 revision 69 by guez, Mon Feb 18 16:33:12 2013 UTC trunk/dyn3d/conf_gcm.f revision 266 by guez, Thu Apr 19 17:54:55 2018 UTC
# Line 2  module conf_gcm_m Line 2  module conf_gcm_m
2    
3    IMPLICIT NONE    IMPLICIT NONE
4    
5    INTEGER:: nday = 10 ! nombre de jours d'intégration    INTEGER:: nday = 1 ! nombre de jours d'int\'egration
6    integer:: day_step = 240 ! nombre de pas par jour, multiple de iperiod    integer:: day_step = 240 ! nombre de pas de temps de la dynamique par jour
7      integer:: iperiod = 5 ! periode pour le pas Matsuno (en pas de temps)
   integer:: iperiod = 5  
   ! periode pour le pas Matsuno (en pas de temps)  
8    
9    integer:: iapp_tracvl = 5    integer:: iapp_tracvl = 5
10    ! Should normally be equal to "iperiod"    ! Should normally be equal to "iperiod"
# Line 15  module conf_gcm_m Line 13  module conf_gcm_m
13    integer:: iconser = 240    integer:: iconser = 240
14    ! number of time steps between output of control variables    ! number of time steps between output of control variables
15    
   integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)  
   
16    integer:: iphysiq = 5    integer:: iphysiq = 5
17    ! number of time steps of dynamics between calls to physics    ! number of time steps of dynamics between calls to physics
18    
   integer:: dayref = 1 ! jour de l'année de l'état initial  
   ! (= 350 si 20 décembre par exemple)  
   
   integer:: anneeref = 1998 ! Annee de l'etat initial (avec 4 chiffres)  
   
19    logical:: raz_date = .false.    logical:: raz_date = .false.
20    ! (remise a zero de la date initiale, prise en compte de la date de    ! prise en compte de la date initiale de la namelist et remise \`a
21    ! gcm.def avec remise a zero des compteurs de pas de temps)    ! z\'ero des compteurs de pas de temps (sinon on garde la date du
22    ! (pas de remise a zero: on garde la date du fichier restart)    ! fichier restart)
23    
24    integer:: periodav = 1    integer:: periodav = 1
25    ! time interval between outputs in the dynamical part, in days    ! time interval between outputs in the dynamical part, in days
26    
27    logical:: offline = .FALSE.    integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum)
   ! permet de mettre en route la nouvelle parametrisation de l'eau liquide  
   
   integer:: prt_level = 0 ! niveau d'impression souhaité (0 = minimum)  
28    
29    LOGICAL:: purmats= .FALSE.    LOGICAL:: purmats= .FALSE.
30    ! Help = Choix du schema d'integration temporel.    ! Help = Choix du schema d'integration temporel.
31    ! y = pure Matsuno sinon c'est du Matsuno-leapfrog    ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
32    
33    logical:: fxyhypb = .TRUE.    logical:: iflag_phys = .true. ! call parameterizations of physics
34    ! (fonction f(y) à dérivée tangente hyperbolique, sinon à dérivée    INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day
   ! sinusoïdale)  
   
   logical:: ysinus = .TRUE.  
   ! (Fonction f(y) avec y = Sin(latit.) si = .true. sinon y = latit.)  
   
   logical:: ok_guide= .FALSE. ! guidage  
   
   INTEGER:: iflag_phys = 1  
   ! contrôle l'appel à la physique :  
   ! 0 : pas de physique  
   ! 1 : physique normale (appel à phylmd, phymars...) (default)  
   ! 2 : rappel Newtonien pour la température + friction au sol  
35    
36  contains  contains
37    
# Line 64  contains Line 40  contains
40      ! Auteurs : L. Fairhead, P. Le Van      ! Auteurs : L. Fairhead, P. Le Van
41      ! Version du 29/04/97      ! Version du 29/04/97
42    
     ! On ne compare pas les valeurs des paramètres du zoom, grossismx,  
     ! grossismy, clon, clat, fxyhypb lues sur le fichier start avec  
     ! celles passées par run.def, au début du gcm.  
     ! Ces paramètres définissent entre autres la grille et doivent être  
     ! cohérents, sinon il y aura divergence du gcm.  
   
43      use abort_gcm_m, only: abort_gcm      use abort_gcm_m, only: abort_gcm
44      use comdissnew, only: read_comdissnew      use nr_util, only: assert
     use serre, only: clon, clat, grossismx, grossismy, alphax, alphay, &  
          dzoomx, dzoomy, taux, tauy  
45      use unit_nml_m, only: unit_nml      use unit_nml_m, only: unit_nml
46    
47      namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, &      namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
48           iperiod, iapp_tracvl, iconser, iecri, periodav, &           iconser, periodav, iphysiq
          iphysiq, clon, clat, grossismx, grossismy, dzoomx, dzoomy, taux, &  
          tauy, offline  
49    
50      namelist /iniprint_nml/prt_level      namelist /iniprint_nml/ prt_level
51    
52      namelist /logic_nml/ purmats, fxyhypb, ysinus, ok_guide, iflag_phys      namelist /logic_nml/ purmats, iflag_phys
53    
54      !------------------------------------      !------------------------------------
55    
# Line 97  contains Line 63  contains
63      read(unit=*, nml=logic_nml)      read(unit=*, nml=logic_nml)
64      write(unit_nml, nml=logic_nml)      write(unit_nml, nml=logic_nml)
65    
     call read_comdissnew  
   
66      print *, "Enter namelist 'conf_gcm_nml'."      print *, "Enter namelist 'conf_gcm_nml'."
67      read(unit=*, nml=conf_gcm_nml)      read(unit=*, nml=conf_gcm_nml)
68      write(unit_nml, nml=conf_gcm_nml)      write(unit_nml, nml=conf_gcm_nml)
69    
70      IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &      IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", &
71           message = &           'Il faut choisir un nombre de pas par jour multiple de "iperiod".')
72           'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &  
73           ierr = 1)      IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", &
74             'Il faut choisir un nombre de pas par jour multiple de "iphysiq".')
75      IF (MOD(day_step, iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &  
76           message = &      call assert(mod(iphysiq, iperiod) == 0, &
77           'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &           "conf_gcm -- iphysiq must be multiple of iperiod")
78           ierr = 1)  
79        lmt_pas = day_step / iphysiq
80      IF (grossismx < 1.) THEN      print *, 'Number of time steps of "physics" per day: ', lmt_pas
        PRINT *, 'Error: grossismx < 1'  
        STOP 1  
     ELSE  
        alphax = 1. - 1. / grossismx  
     ENDIF  
     IF (grossismy < 1.) THEN  
        PRINT *, 'Error: grossismy < 1'  
        STOP 1  
     ELSE  
        alphay = 1. - 1. / grossismy  
     ENDIF  
     PRINT *, 'alphax = ', alphax  
     PRINT *, 'alphay = ', alphay  
81    
82    END SUBROUTINE conf_gcm    END SUBROUTINE conf_gcm
83    

Legend:
Removed from v.69  
changed lines
  Added in v.266

  ViewVC Help
Powered by ViewVC 1.1.21