3 |
IMPLICIT NONE |
IMPLICIT NONE |
4 |
|
|
5 |
INTEGER:: nday = 1 ! 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 of dynamics between output of control variables |
19 |
|
|
20 |
integer:: iecri = 1 |
integer, protected:: iphysiq = 5 |
21 |
! number of time steps of dynamics between outputs to "dyn_hist*.nc" |
! 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 |
integer:: iphysiq = 5 |
logical, protected:: raz_date = .false. |
|
! number of time steps of dynamics between calls to physics |
|
|
|
|
|
logical:: raz_date = .false. |
|
25 |
! 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 |
26 |
! 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 |
27 |
! fichier restart) |
! fichier restart) |
28 |
|
|
29 |
integer:: periodav = 1 |
integer, protected:: periodav = 1 |
30 |
! time interval between outputs in the dynamical part, in days |
! time interval between outputs in the dynamical part, in days |
31 |
|
|
32 |
integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum) |
integer, protected:: prt_level = 0 |
33 |
|
! niveau d'impression souhait\'e (0 = minimum) |
34 |
|
|
35 |
LOGICAL:: purmats= .FALSE. |
LOGICAL, protected:: purmats= .FALSE. |
36 |
! Help = Choix du schema d'integration temporel. |
! Help = Choix du schema d'integration temporel. |
37 |
! y = pure Matsuno sinon c'est du Matsuno-leapfrog |
! y = pure Matsuno sinon c'est du Matsuno-leapfrog |
38 |
|
|
39 |
logical:: iflag_phys = .true. ! call parameterizations of physics |
logical, protected:: iflag_phys = .true. ! call parameterizations of physics |
40 |
INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day |
INTEGER, SAVE, protected:: lmt_pas ! number of time steps of "physics" per day |
41 |
|
|
42 |
contains |
contains |
43 |
|
|
51 |
use unit_nml_m, only: unit_nml |
use unit_nml_m, only: unit_nml |
52 |
|
|
53 |
namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & |
namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & |
54 |
iconser, iecri, periodav, iphysiq |
iconser, periodav, iphysiq |
55 |
|
|
56 |
namelist /iniprint_nml/ prt_level |
namelist /iniprint_nml/ prt_level |
57 |
|
|
73 |
read(unit=*, nml=conf_gcm_nml) |
read(unit=*, nml=conf_gcm_nml) |
74 |
write(unit_nml, nml=conf_gcm_nml) |
write(unit_nml, nml=conf_gcm_nml) |
75 |
|
|
76 |
|
if (iphysiq <= 0 .or. iperiod <= 0 .or. day_step <= 0) & |
77 |
|
call abort_gcm("conf_gcm", & |
78 |
|
"iphysiq <= 0 or iperiod <= 0 or day_step <= 0") |
79 |
|
|
80 |
IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", & |
IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", & |
81 |
'Il faut choisir un nombre de pas par jour multiple de "iperiod".') |
'Il faut choisir un nombre de pas par jour multiple de "iperiod".') |
82 |
|
|