SURFEX v8.1
General documentation of Surfex
pgd_teb_greenroof.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 ! #########
6  SUBROUTINE pgd_teb_greenroof (DTCO, UG, U, USS, IO, S, K, DTV, KDIM, HPROGRAM)
7 ! ##############################################################
8 !
9 !!**** *PGD_TEB_GREENROOF* monitor for averaging and interpolations of TEB GR physiographic fields
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !! METHOD
15 !! ------
16 !!
17 !
18 !! EXTERNAL
19 !! --------
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !! AUTHOR
28 !! ------
29 !!
30 !! C.de Munck & A. Lemonsu Meteo-France
31 !!
32 !! MODIFICATION
33 !! ------------
34 !!
35 !! Original 07/2011
36 !!
37 !----------------------------------------------------------------------------
38 !
39 !* 0. DECLARATION
40 ! -----------
41 !
43 USE modd_isba_n, ONLY : isba_s_t, isba_k_t
44 USE modd_data_isba_n, ONLY : data_isba_t
45 !
46 !
49 USE modd_surf_atm_n, ONLY : surf_atm_t
50 USE modd_sso_n, ONLY : sso_t
51 !
52 USE modd_pgd_grid, ONLY : nl
53 USE modd_data_cover_par, ONLY : nvegtype
54 !
55 USE modi_pgd_teb_greenroof_par
56 !
57 USE yomhook ,ONLY : lhook, dr_hook
58 USE parkind1 ,ONLY : jprb
59 !
60 USE modi_abor1_sfx
61 !
62 IMPLICIT NONE
63 !
64 !* 0.1 Declaration of arguments
65 ! ------------------------
66 !
67 !
68 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
69 TYPE(surf_atm_grid_t), INTENT(INOUT) :: UG
70 TYPE(surf_atm_t), INTENT(INOUT) :: U
71 TYPE(sso_t), INTENT(INOUT) :: USS
72 TYPE(isba_options_t), INTENT(INOUT) :: IO
73 TYPE(isba_s_t), INTENT(INOUT) :: S
74 TYPE(isba_k_t), INTENT(INOUT) :: K
75 TYPE(data_isba_t), INTENT(INOUT) :: DTV
76 !
77 INTEGER, INTENT(IN) :: KDIM
78 !
79  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! Type of program
80 ! ! F if all parameters must be specified
81 !
82 !
83 !* 0.2 Declaration of local variables
84 ! ------------------------------
85 !
86 !* 0.3 Declaration of namelists
87 ! ------------------------
88 !
89 REAL(KIND=JPRB) :: ZHOOK_HANDLE
90 !
91 !-------------------------------------------------------------------------------
92 !
93 IF (lhook) CALL dr_hook('PGD_TEB_GREENROOF',0,zhook_handle)
94 !
95 !-------------------------------------------------------------------------------
96 !
97 !* 1. ISBA specific fields for green roofs
98 ! ------------------------------------
99 !
100 ! for green roofs, CISBA = DIF / CSCOND = 'DEF '
101 io%CISBA = 'DIF'
102 io%CSCOND = 'PL98 ' ! CSCOND_GR = 'PL98' !begin test 29092011 ! normalement pas besoin
103 io%CHORT = 'DEF '
104 io%CKSAT = 'DEF '
105 io%LSOC = .false.
106 io%LTR_ML = .false.
107 !
108 ALLOCATE(k%XRUNOFFB(kdim))
109 ALLOCATE(k%XWDRAIN (kdim))
110 !
111 k%XRUNOFFB(:) = 0.5
112 k%XWDRAIN (:) = 0.0
113 !
114 dtv%NTIME = 12
115 !
116 io%LPAR = .true.
117 !
118  CALL pgd_teb_greenroof_par(dtco, dtv, ug, u, uss, io, s, k, kdim, hprogram)
119 !
120 !
121 IF (lhook) CALL dr_hook('PGD_TEB_GREENROOF',1,zhook_handle)
122 !
123 !
124 !-------------------------------------------------------------------------------
125 !
126 !
127 END SUBROUTINE pgd_teb_greenroof
subroutine pgd_teb_greenroof(DTCO, UG, U, USS, IO, S, K, DTV, KDI
subroutine pgd_teb_greenroof_par(DTCO, DTV, UG, U, USS, IO, S, K,
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15