SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
allocate_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 allocate_teb_greenroof (TGR, TVG, &
7  klu,klayer_gr)
8 ! ##########################################################################
9 !
10 !
11 !
12 !
15 !
16 USE yomhook ,ONLY : lhook, dr_hook
17 USE parkind1 ,ONLY : jprb
18 !
19 IMPLICIT NONE
20 !
21 !
22 TYPE(teb_greenroof_t), INTENT(INOUT) :: tgr
23 TYPE(teb_veg_options_t), INTENT(INOUT) :: tvg
24 !
25 INTEGER, INTENT(IN) :: klu
26 INTEGER, INTENT(IN) :: klayer_gr
27 REAL(KIND=JPRB) :: zhook_handle
28 !
29 !-------------------------------------------------------------------------------
30 !
31 ! Mask and number of grid elements containing patches/tiles:
32 !
33 IF (lhook) CALL dr_hook('ALLOCATE_TEB_GREENROOF',0,zhook_handle)
34 !
35 !-------------------------------------------------------------------------------
36 !
37 ! Averaged Surface radiative parameters:
38 !
39 ALLOCATE(tgr%CUR%XSNOWFREE_ALB (klu))
40 ALLOCATE(tgr%CUR%XSNOWFREE_ALB_VEG (klu))
41 ALLOCATE(tgr%CUR%XSNOWFREE_ALB_SOIL (klu))
42 !
43 !-------------------------------------------------------------------------------
44 !
45 ! Prognostic variables:
46 !
47 ! - Soil and vegetation heat and water:
48 !
49 ALLOCATE(tgr%CUR%XWR (klu ))
50 ALLOCATE(tgr%CUR%XTG (klu,klayer_gr ))
51 ALLOCATE(tgr%CUR%XWG (klu,klayer_gr ))
52 ALLOCATE(tgr%CUR%XWGI (klu,klayer_gr ))
53 ALLOCATE(tgr%CUR%XRESA (klu ))
54 !
55 ! - Vegetation: Ags Prognostic (YPHOTO = 'LAI', 'LST', 'AGS' or 'LST')
56 !
57 ALLOCATE(tgr%CUR%XAN (klu ))
58 ALLOCATE(tgr%CUR%XANDAY (klu ))
59 ALLOCATE(tgr%CUR%XANFM (klu ))
60 ALLOCATE(tgr%CUR%XLE (klu ))
61 !
62 ! - Vegetation (Ags 'NIT' 'NCB' option):
63 !
64 ALLOCATE(tgr%CUR%XBIOMASS (klu,tvg%NNBIOMASS ))
65 ALLOCATE(tgr%CUR%XRESP_BIOMASS (klu,tvg%NNBIOMASS ))
66 !
67 IF (lhook) CALL dr_hook('ALLOCATE_TEB_GREENROOF',1,zhook_handle)
68 !
69 END SUBROUTINE allocate_teb_greenroof
subroutine allocate_teb_greenroof(TGR, TVG, KLU, KLAYER_GR)