5 |
implicit none |
implicit none |
6 |
|
|
7 |
LOGICAL:: cycle_diurne = .TRUE. |
LOGICAL:: cycle_diurne = .TRUE. |
8 |
! Cette option permet d'éteindre le cycle diurne. |
! Cette option permet d'\'eteindre le cycle diurne. Peut \^etre utile |
9 |
! Peut être utile pour accélérer le code. |
! pour acc\'el\'erer le code. |
10 |
|
|
11 |
LOGICAL:: soil_model = .TRUE. |
LOGICAL:: soil_model = .TRUE. |
12 |
! Choix du modele de sol (Thermique ?) |
! Choix du modele de sol (Thermique ?) |
25 |
INTEGER:: nbapp_rad = 12 |
INTEGER:: nbapp_rad = 12 |
26 |
! nombre d'appels des routines de rayonnements par jour |
! nombre d'appels des routines de rayonnements par jour |
27 |
|
|
28 |
INTEGER:: iflag_con = 2 |
logical:: conv_emanuel = .true. ! convection scheme of Emanuel, else Tiedtke |
|
! Convection scheme: |
|
|
! 2 Tiedtke |
|
|
! 3 Emanuel |
|
|
! 4 Emanuel vect |
|
29 |
|
|
30 |
contains |
contains |
31 |
|
|
32 |
subroutine read_clesphys2 |
subroutine read_clesphys2 |
33 |
|
|
34 |
use unit_nml_m, only: unit_nml |
use unit_nml_m, only: unit_nml |
35 |
|
use nr_util, only: assert |
36 |
|
use conf_gcm_m, only: day_step, iphysiq |
37 |
|
|
38 |
namelist /clesphys2_nml/cycle_diurne, soil_model, new_oliq, & |
namelist /clesphys2_nml/cycle_diurne, soil_model, new_oliq, ok_orodr, & |
39 |
ok_orodr, ok_orolf, ok_limitvrai, nbapp_rad, iflag_con |
ok_orolf, ok_limitvrai, nbapp_rad, conv_emanuel |
40 |
|
|
41 |
!------------------------------------ |
!------------------------------------ |
42 |
|
|
43 |
print *, "Enter namelist 'clesphys2_nml'." |
print *, "Enter namelist 'clesphys2_nml'." |
44 |
read(unit=*, nml=clesphys2_nml) |
read(unit=*, nml=clesphys2_nml) |
45 |
write(unit_nml, nml=clesphys2_nml) |
write(unit_nml, nml=clesphys2_nml) |
46 |
|
call assert(mod(day_step / iphysiq, nbapp_rad) == 0, & |
47 |
if (iflag_con <= 1) then |
"read_clesphys2 nbapp_rad") |
48 |
print *, "bad value for iflag_con" |
call assert(nbapp_rad >= 4 .or. .not. cycle_diurne, & |
49 |
stop 1 |
"read_clesphys2: minimum 4 calls to radiative transfer per day if " & |
50 |
end if |
// "cycle diurne") |
51 |
|
|
52 |
end subroutine read_clesphys2 |
end subroutine read_clesphys2 |
53 |
|
|