4 |
|
|
5 |
implicit none |
implicit none |
6 |
|
|
|
LOGICAL:: cycle_diurne = .TRUE. |
|
|
! Cette option permet d'éteindre le cycle diurne. Peut être utile |
|
|
! pour accélérer le code. |
|
|
|
|
|
LOGICAL:: soil_model = .TRUE. |
|
|
! Choix du modele de sol (Thermique ?) |
|
|
|
|
7 |
LOGICAL:: new_oliq = .TRUE. |
LOGICAL:: new_oliq = .TRUE. |
8 |
! Permet de mettre en route la nouvelle parametrisation de l'eau liquide |
! Permet de mettre en route la nouvelle parametrisation de l'eau liquide |
9 |
|
|
18 |
INTEGER:: nbapp_rad = 12 |
INTEGER:: nbapp_rad = 12 |
19 |
! nombre d'appels des routines de rayonnements par jour |
! nombre d'appels des routines de rayonnements par jour |
20 |
|
|
21 |
INTEGER:: iflag_con = 2 |
logical:: conv_emanuel = .true. ! convection scheme of Emanuel, else Tiedtke |
|
! Convection scheme: |
|
|
! 2 Tiedtke |
|
|
! 3 Emanuel |
|
|
! 4 Emanuel vect |
|
22 |
|
|
23 |
contains |
contains |
24 |
|
|
26 |
|
|
27 |
use unit_nml_m, only: unit_nml |
use unit_nml_m, only: unit_nml |
28 |
use nr_util, only: assert |
use nr_util, only: assert |
29 |
|
use conf_gcm_m, only: day_step, iphysiq |
30 |
|
|
31 |
namelist /clesphys2_nml/cycle_diurne, soil_model, new_oliq, ok_orodr, & |
namelist /clesphys2_nml/new_oliq, ok_orodr, ok_orolf, ok_limitvrai, & |
32 |
ok_orolf, ok_limitvrai, nbapp_rad, iflag_con |
nbapp_rad, conv_emanuel |
33 |
|
|
34 |
!------------------------------------ |
!------------------------------------ |
35 |
|
|
36 |
print *, "Enter namelist 'clesphys2_nml'." |
print *, "Enter namelist 'clesphys2_nml'." |
37 |
read(unit=*, nml=clesphys2_nml) |
read(unit=*, nml=clesphys2_nml) |
38 |
write(unit_nml, nml=clesphys2_nml) |
write(unit_nml, nml=clesphys2_nml) |
39 |
call assert(iflag_con >= 2 .and. iflag_con <= 4, "read_clesphys2 iflag_con") |
call assert(mod(day_step / iphysiq, nbapp_rad) == 0, & |
40 |
|
"read_clesphys2 nbapp_rad") |
41 |
|
call assert(nbapp_rad >= 4, & |
42 |
|
"read_clesphys2: minimum 4 calls to radiative transfer per day") |
43 |
|
|
44 |
end subroutine read_clesphys2 |
end subroutine read_clesphys2 |
45 |
|
|