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

Diff of /trunk/dyn3d/conf_gcm.f90

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

trunk/libf/dyn3d/conf_gcm.f90 revision 56 by guez, Tue Jan 10 19:02:02 2012 UTC trunk/dyn3d/conf_gcm.f90 revision 348 by guez, Mon Dec 23 14:32:59 2019 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
   integer:: day_step = 240 ! nombre de pas par jour, multiple de iperiod  
6    
7    integer:: iperiod = 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)    ! periode pour le pas Matsuno (en pas de temps)
12    
13    integer:: iapp_tracvl = 5    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 of dynamics between output of control variables
   
   integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)  
   
   integer:: iphysiq = 5  
   ! number of time steps of dynamics between calls to physics  
19    
20    integer:: dayref = 1 ! jour de l'année de l'état initial    integer, protected:: iphysiq = 5
21    ! (= 350 si 20 décembre par exemple)    ! Number of time steps of dynamics between calls to physics. Must be
22      ! >= 1. 1 means one call to physics at each time step of dynamics.
23    
24      logical, protected:: raz_date = .false.
25      ! prise en compte de la date initiale de la namelist et remise \`a
26      ! z\'ero des compteurs de pas de temps (sinon on garde la date du
27      ! fichier restart)
28    
29    integer:: anneeref = 1998 ! Annee de l'etat initial (avec 4 chiffres)    integer, protected:: periodav = 1
30      ! time interval between outputs in the dynamical part, in days
31    
32    logical:: raz_date = .false.    integer, protected:: prt_level = 0
33    ! (remise a zero de la date initiale, prise en compte de la date de    ! niveau d'impression souhait\'e (0 = minimum)
   ! gcm.def avec remise a zero des compteurs de pas de temps)  
   ! (pas de remise a zero: on garde la date du fichier restart)  
34    
35    integer:: periodav = 1    LOGICAL, protected:: purmats= .FALSE.
36    ! time interval between outputs in the dynamical part, in days    ! Help = Choix du schema d'integration temporel.
37      ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
38    
39    logical:: offline = .FALSE.    logical, protected:: iflag_phys = .true. ! call parameterizations of physics
40    ! permet de mettre en route la nouvelle parametrisation de l'eau liquide    INTEGER, SAVE, protected:: lmt_pas ! number of time steps of "physics" per day
41    
42  contains  contains
43    
# Line 43  contains Line 46  contains
46      ! Auteurs : L. Fairhead, P. Le Van      ! Auteurs : L. Fairhead, P. Le Van
47      ! Version du 29/04/97      ! Version du 29/04/97
48    
     ! 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.  
   
49      use abort_gcm_m, only: abort_gcm      use abort_gcm_m, only: abort_gcm
50      use comdissnew, only: read_comdissnew      use nr_util, only: assert
51      use logic, only: read_logic      use unit_nml_m, only: unit_nml
52      use serre, only: clon, clat, grossismx, grossismy, alphax, alphay, &  
53           dzoomx, dzoomy, taux, tauy      namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
54      use iniprint, only: read_iniprint           iconser, periodav, iphysiq
55        namelist /iniprint_nml/ prt_level
56      namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, &      namelist /logic_nml/ purmats, iflag_phys
          iperiod, iapp_tracvl, iconser, iecri, periodav, &  
          iphysiq, clon, clat, grossismx, grossismy, dzoomx, dzoomy, taux, &  
          tauy, offline  
57    
58      !------------------------------------      !------------------------------------
59    
60      print *, "Call sequence information: conf_gcm"      print *, "Call sequence information: conf_gcm"
61    
62      call read_iniprint      print *, "Enter namelist 'iniprint_nml'."
63      call read_logic      read(unit=*, nml=iniprint_nml)
64      call read_comdissnew      write(unit_nml, nml=iniprint_nml)
65    
66        print *, "Enter namelist 'logic_nml'."
67        read(unit=*, nml=logic_nml)
68        write(unit_nml, nml=logic_nml)
69    
70      print *, "Enter namelist 'conf_gcm_nml'."      print *, "Enter namelist 'conf_gcm_nml'."
71      read(unit=*, nml=conf_gcm_nml)      read(unit=*, nml=conf_gcm_nml)
72      write(unit=*, nml=conf_gcm_nml)      write(unit_nml, nml=conf_gcm_nml)
73    
74        if (iphysiq <= 0 .or. iperiod <= 0 .or. day_step <= 0) &
75             call abort_gcm("conf_gcm", &
76             "iphysiq <= 0 or iperiod <= 0 or day_step <= 0")
77    
78        IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", &
79             'Il faut choisir un nombre de pas par jour multiple de "iperiod".')
80    
81        IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", &
82             'Il faut choisir un nombre de pas par jour multiple de "iphysiq".')
83    
84        call assert(mod(iphysiq, iperiod) == 0, &
85             "conf_gcm -- iphysiq must be multiple of iperiod")
86    
87      IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &      lmt_pas = day_step / iphysiq
88           message = &      print *, 'Number of time steps of "physics" per day: ', lmt_pas
          'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &  
          ierr = 1)  
   
     IF (MOD(day_step,iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &  
          message = &  
          'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &  
          ierr = 1)  
   
     IF (grossismx < 1.) THEN  
        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  
89    
90    END SUBROUTINE conf_gcm    END SUBROUTINE conf_gcm
91    

Legend:
Removed from v.56  
changed lines
  Added in v.348

  ViewVC Help
Powered by ViewVC 1.1.21