/[lmdze]/trunk/Sources/phylmd/clesphys2.f
ViewVC logotype

Contents of /trunk/Sources/phylmd/clesphys2.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 154 - (show annotations)
Tue Jul 7 17:49:23 2015 UTC (8 years, 9 months ago) by guez
File size: 1615 byte(s)
Removed argument dtphys of physiq. Use it directly from comconst in
physiq instead.

Donwgraded variables eignfnu, eignfnv of module inifgn_m to dummy
arguments of SUBROUTINE inifgn. They were not used elsewhere than in
the calling procedure inifilr. Renamed argument dv of inifgn to eignval_v.

Made alboc and alboc_cd independent of the size of arguments. Now we
can call them only at indices knindex in interfsurf_hq, where we need
them. Fixed a bug in alboc_cd: rmu0 was modified, and the
corresponding actual argument in interfsurf_hq is an intent(in)
argument of interfsurf_hq.

Variables of size knon instead of klon in interfsur_lim and interfsurf_hq.

Removed argument alb_new of interfsurf_hq because it was the same than
alblw. Simplified test on cycle_diurne, following LMDZ.

Moved tests on nbapp_rad from physiq to read_clesphys2. No need for
separate counter itaprad, we can use itap. Define lmt_pas and radpas
from integer input parameters instead of real-type computed values.

1 module clesphys2
2
3 ! From version 1.3 2005/06/06 13:16:33
4
5 implicit none
6
7 LOGICAL:: cycle_diurne = .TRUE.
8 ! Cette option permet d'\'eteindre le cycle diurne. Peut \^etre utile
9 ! pour acc\'el\'erer le code.
10
11 LOGICAL:: soil_model = .TRUE.
12 ! Choix du modele de sol (Thermique ?)
13
14 LOGICAL:: new_oliq = .TRUE.
15 ! Permet de mettre en route la nouvelle parametrisation de l'eau liquide
16
17 ! Pour l'orographie:
18 LOGICAL:: ok_orodr = .TRUE.
19 LOGICAL:: ok_orolf = .TRUE.
20
21 LOGICAL:: ok_limitvrai = .FALSE.
22 ! On peut forcer le modele a lire le fichier SST de la bonne
23 ! annee.
24
25 INTEGER:: nbapp_rad = 12
26 ! nombre d'appels des routines de rayonnements par jour
27
28 INTEGER:: iflag_con = 2
29 ! Convection scheme:
30 ! 2 Tiedtke
31 ! 3 Emanuel
32 ! 4 Emanuel vect
33
34 contains
35
36 subroutine read_clesphys2
37
38 use unit_nml_m, only: unit_nml
39 use nr_util, only: assert
40 use conf_gcm_m, only: day_step, iphysiq
41
42 namelist /clesphys2_nml/cycle_diurne, soil_model, new_oliq, ok_orodr, &
43 ok_orolf, ok_limitvrai, nbapp_rad, iflag_con
44
45 !------------------------------------
46
47 print *, "Enter namelist 'clesphys2_nml'."
48 read(unit=*, nml=clesphys2_nml)
49 write(unit_nml, nml=clesphys2_nml)
50 call assert(iflag_con >= 2 .and. iflag_con <= 4, "read_clesphys2 iflag_con")
51 call assert(mod(day_step / iphysiq, nbapp_rad) == 0, &
52 "read_clesphys2 nbapp_rad")
53 call assert(nbapp_rad >= 4 .or. .not. cycle_diurne, &
54 "read_clesphys2: minimum 4 calls to radiative transfer per day if " &
55 // "cycle diurne")
56
57 end subroutine read_clesphys2
58
59 end module clesphys2

  ViewVC Help
Powered by ViewVC 1.1.21