2 |
|
|
3 |
IMPLICIT NONE |
IMPLICIT NONE |
4 |
|
|
5 |
INTEGER:: nday = 10 ! nombre de jours d'intégration |
INTEGER:: nday = 10 ! 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" |
14 |
! number of time steps between output of control variables |
! number of time steps between output of control variables |
15 |
|
|
16 |
integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days) |
integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days) |
|
integer:: iphysiq = 5 ! période de la physique en pas de temps de la dynamique |
|
|
|
|
|
integer:: dayref = 1 ! jour de l'année de l'état initial |
|
|
! (= 350 si 20 décembre par exemple) |
|
17 |
|
|
18 |
integer:: anneeref = 1998 ! Annee de l'etat initial (avec 4 chiffres) |
integer:: iphysiq = 5 |
19 |
|
! number of time steps of dynamics between calls to physics |
20 |
|
|
21 |
logical:: raz_date = .false. |
logical:: raz_date = .false. |
22 |
! (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 |
23 |
! 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 |
24 |
! (pas de remise a zero: on garde la date du fichier restart) |
! fichier restart) |
25 |
|
|
26 |
REAL:: periodav = 1. ! time interval between outputs to "histmoy" (in days) |
integer:: periodav = 1 |
27 |
|
! time interval between outputs in the dynamical part, in days |
28 |
|
|
29 |
logical:: offline = .FALSE. |
logical:: offline = .FALSE. |
30 |
! permet de mettre en route la nouvelle parametrisation de l'eau liquide |
! permet de mettre en route la nouvelle parametrisation de l'eau liquide |
31 |
|
|
32 |
|
integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum) |
33 |
|
|
34 |
|
LOGICAL:: purmats= .FALSE. |
35 |
|
! Help = Choix du schema d'integration temporel. |
36 |
|
! y = pure Matsuno sinon c'est du Matsuno-leapfrog |
37 |
|
|
38 |
|
logical:: iflag_phys = .true. ! call parameterizations of physics |
39 |
|
INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day |
40 |
|
|
41 |
contains |
contains |
42 |
|
|
43 |
SUBROUTINE conf_gcm |
SUBROUTINE conf_gcm |
45 |
! Auteurs : L. Fairhead, P. Le Van |
! Auteurs : L. Fairhead, P. Le Van |
46 |
! Version du 29/04/97 |
! Version du 29/04/97 |
47 |
|
|
|
! 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. |
|
|
|
|
48 |
use abort_gcm_m, only: abort_gcm |
use abort_gcm_m, only: abort_gcm |
49 |
use comdissnew, only: read_comdissnew |
use unit_nml_m, only: unit_nml |
50 |
use logic, only: read_logic |
|
51 |
use serre, only: clon, clat, grossismx, grossismy, alphax, alphay, & |
namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, & |
52 |
dzoomx, dzoomy, taux, tauy |
iconser, iecri, periodav, iphysiq, offline |
53 |
use iniprint, only: read_iniprint |
|
54 |
|
namelist /iniprint_nml/ prt_level |
55 |
namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, & |
|
56 |
iperiod, iapp_tracvl, iconser, iecri, periodav, & |
namelist /logic_nml/ purmats, iflag_phys |
|
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 (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", & |
75 |
|
'Il faut choisir un nombre de pas par jour multiple de "iperiod".') |
76 |
|
|
77 |
|
IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", & |
78 |
|
'Il faut choisir un nombre de pas par jour multiple de "iphysiq".') |
79 |
|
|
80 |
IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "gcm", & |
lmt_pas = day_step / iphysiq |
81 |
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 = "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 |
|
82 |
|
|
83 |
END SUBROUTINE conf_gcm |
END SUBROUTINE conf_gcm |
84 |
|
|