/[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/Sources/dyn3d/conf_gcm.f revision 191 by guez, Mon May 9 19:56:28 2016 UTC trunk/dyn3d/conf_gcm.f revision 301 by guez, Thu Aug 2 17:23:07 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\'egration    INTEGER:: nday = 1 ! nombre de jours d'int\'egration
   integer:: day_step = 240 ! nombre de pas de temps de la dynamique par jour  
   integer:: iperiod = 5 ! periode pour le pas Matsuno (en pas de temps)  
6    
7    integer:: iapp_tracvl = 5    integer, protected:: day_step = 240
8      ! nombre de pas de temps de la dynamique par jour
9    
10      integer, protected:: iperiod = 5
11      ! periode pour le pas Matsuno (en pas de temps)
12    
13      integer, protected:: iapp_tracvl = 5
14    ! Should normally be equal to "iperiod"    ! Should normally be equal to "iperiod"
15    ! frequence du groupement des flux (en pas de temps)    ! frequence du groupement des flux (en pas de temps)
16    
17    integer:: iconser = 240    integer, protected:: iconser = 240
18    ! number of time steps between output of control variables    ! number of time steps between output of control variables
19    
20    integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)    integer, protected:: iphysiq = 5
   
   integer:: iphysiq = 5  
21    ! number of time steps of dynamics between calls to physics    ! number of time steps of dynamics between calls to physics
22    
23    logical:: raz_date = .false.    logical, protected:: raz_date = .false.
24    ! prise en compte de la date initiale de la namelist et remise \`a    ! prise en compte de la date initiale de la namelist et remise \`a
25    ! z\'ero des compteurs de pas de temps (sinon on garde la date du    ! z\'ero des compteurs de pas de temps (sinon on garde la date du
26    ! fichier restart)    ! fichier restart)
27    
28    integer:: periodav = 1    integer, protected:: periodav = 1
29    ! time interval between outputs in the dynamical part, in days    ! time interval between outputs in the dynamical part, in days
30    
31    logical:: offline = .FALSE.    integer, protected:: prt_level = 0
32    ! permet de mettre en route la nouvelle parametrisation de l'eau liquide    ! niveau d'impression souhait\'e (0 = minimum)
33    
34    integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum)    LOGICAL, protected:: purmats= .FALSE.
   
   LOGICAL:: purmats= .FALSE.  
35    ! Help = Choix du schema d'integration temporel.    ! Help = Choix du schema d'integration temporel.
36    ! y = pure Matsuno sinon c'est du Matsuno-leapfrog    ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
37    
38    INTEGER:: iflag_phys = 1    logical, protected:: iflag_phys = .true. ! call parameterizations of physics
39    ! contr\^ole l'appel \`a la physique :    INTEGER, SAVE, protected:: lmt_pas ! number of time steps of "physics" per day
   ! 0 : pas de physique  
   ! 1 : physique normale (appel \`a phylmd, phymars...) (default)  
   ! 2 : rappel Newtonien pour la temp\'erature + friction au sol  
40    
41  contains  contains
42    
# Line 49  contains Line 46  contains
46      ! Version du 29/04/97      ! Version du 29/04/97
47    
48      use abort_gcm_m, only: abort_gcm      use abort_gcm_m, only: abort_gcm
49        use nr_util, only: assert
50      use unit_nml_m, only: unit_nml      use unit_nml_m, only: unit_nml
51    
52      namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &      namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
53           iconser, iecri, periodav, iphysiq, offline           iconser, periodav, iphysiq
54    
55      namelist /iniprint_nml/ prt_level      namelist /iniprint_nml/ prt_level
56    
# Line 80  contains Line 78  contains
78      IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", &      IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", &
79           'Il faut choisir un nombre de pas par jour multiple de "iphysiq".')           'Il faut choisir un nombre de pas par jour multiple de "iphysiq".')
80    
81        call assert(mod(iphysiq, iperiod) == 0, &
82             "conf_gcm -- iphysiq must be multiple of iperiod")
83    
84        lmt_pas = day_step / iphysiq
85        print *, 'Number of time steps of "physics" per day: ', lmt_pas
86    
87    END SUBROUTINE conf_gcm    END SUBROUTINE conf_gcm
88    
89  end module conf_gcm_m  end module conf_gcm_m

Legend:
Removed from v.191  
changed lines
  Added in v.301

  ViewVC Help
Powered by ViewVC 1.1.21