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" |
18 |
integer:: iphysiq = 5 |
integer:: iphysiq = 5 |
19 |
! number of time steps of dynamics between calls to physics |
! number of time steps of dynamics between calls to physics |
20 |
|
|
|
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) |
|
|
|
|
21 |
logical:: raz_date = .false. |
logical:: raz_date = .false. |
22 |
! prise en compte de la date initiale de la namelist et remise à |
! prise en compte de la date initiale de la namelist et remise \`a |
23 |
! zéro 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 |
24 |
! fichier restart) |
! fichier restart) |
25 |
|
|
26 |
integer:: periodav = 1 |
integer:: periodav = 1 |
27 |
! time interval between outputs in the dynamical part, in days |
! time interval between outputs in the dynamical part, in days |
28 |
|
|
29 |
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) |
|
30 |
|
|
31 |
LOGICAL:: purmats= .FALSE. |
LOGICAL:: purmats= .FALSE. |
32 |
! Help = Choix du schema d'integration temporel. |
! Help = Choix du schema d'integration temporel. |
33 |
! y = pure Matsuno sinon c'est du Matsuno-leapfrog |
! y = pure Matsuno sinon c'est du Matsuno-leapfrog |
34 |
|
|
35 |
logical:: ok_guide= .FALSE. ! guidage |
logical:: iflag_phys = .true. ! call parameterizations of physics |
36 |
|
INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day |
|
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 |
|
37 |
|
|
38 |
contains |
contains |
39 |
|
|
42 |
! Auteurs : L. Fairhead, P. Le Van |
! Auteurs : L. Fairhead, P. Le Van |
43 |
! Version du 29/04/97 |
! Version du 29/04/97 |
44 |
|
|
|
! On ne compare pas les paramètres du zoom (grossismx, grossismy, |
|
|
! clon, clat) lus sur le fichier start avec ceux lus dans |
|
|
! une namelist, au début de gcm. Ces paramètres définissent entre |
|
|
! autres la grille et doivent être identiques, sinon il y aura |
|
|
! divergence du gcm. |
|
|
|
|
45 |
use abort_gcm_m, only: abort_gcm |
use abort_gcm_m, only: abort_gcm |
46 |
use comdissnew, only: read_comdissnew |
use nr_util, only: assert |
47 |
use unit_nml_m, only: unit_nml |
use unit_nml_m, only: unit_nml |
48 |
|
|
49 |
namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, & |
namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & |
50 |
iperiod, iapp_tracvl, iconser, iecri, periodav, iphysiq, offline |
iconser, iecri, periodav, iphysiq |
51 |
|
|
52 |
namelist /iniprint_nml/prt_level |
namelist /iniprint_nml/ prt_level |
53 |
|
|
54 |
namelist /logic_nml/ purmats, ok_guide, iflag_phys |
namelist /logic_nml/ purmats, iflag_phys |
55 |
|
|
56 |
!------------------------------------ |
!------------------------------------ |
57 |
|
|
65 |
read(unit=*, nml=logic_nml) |
read(unit=*, nml=logic_nml) |
66 |
write(unit_nml, nml=logic_nml) |
write(unit_nml, nml=logic_nml) |
67 |
|
|
|
call read_comdissnew |
|
|
|
|
68 |
print *, "Enter namelist 'conf_gcm_nml'." |
print *, "Enter namelist 'conf_gcm_nml'." |
69 |
read(unit=*, nml=conf_gcm_nml) |
read(unit=*, nml=conf_gcm_nml) |
70 |
write(unit_nml, nml=conf_gcm_nml) |
write(unit_nml, nml=conf_gcm_nml) |
71 |
|
|
72 |
IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", & |
IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", & |
73 |
message = & |
'Il faut choisir un nombre de pas par jour multiple de "iperiod".') |
74 |
'Il faut choisir un nombre de pas par jour multiple de "iperiod".', & |
|
75 |
ierr = 1) |
IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", & |
76 |
|
'Il faut choisir un nombre de pas par jour multiple de "iphysiq".') |
77 |
IF (MOD(day_step, iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", & |
|
78 |
message = & |
call assert(mod(iphysiq, iperiod) == 0, & |
79 |
'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', & |
"conf_gcm -- iphysiq must be multiple of iperiod") |
80 |
ierr = 1) |
|
81 |
|
lmt_pas = day_step / iphysiq |
82 |
if (ok_guide .and. mod(day_step, 4 * iperiod) /= 0) call & |
print *, 'Number of time steps of "physics" per day: ', lmt_pas |
|
abort_gcm(modname = "conf_gcm", & |
|
|
message = 'ok_guide day_step iperiod', ierr = 1) |
|
83 |
|
|
84 |
END SUBROUTINE conf_gcm |
END SUBROUTINE conf_gcm |
85 |
|
|