SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
allocate_teb_garden.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_garden (TGD, TVG, &
7  klu,kground_layer)
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_garden_t), INTENT(INOUT) :: tgd
23 TYPE(teb_veg_options_t), INTENT(INOUT) :: tvg
24 !
25 INTEGER, INTENT(IN) :: klu
26 INTEGER, INTENT(IN) :: kground_layer
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_GARDEN',0,zhook_handle)
34 !
35 !-------------------------------------------------------------------------------
36 !
37 ! Averaged Surface radiative parameters:
38 !
39 ALLOCATE(tgd%CUR%XSNOWFREE_ALB (klu))
40 ALLOCATE(tgd%CUR%XSNOWFREE_ALB_VEG (klu))
41 ALLOCATE(tgd%CUR%XSNOWFREE_ALB_SOIL (klu))
42 !
43 !-------------------------------------------------------------------------------
44 !
45 ! Prognostic variables:
46 !
47 !
48 ! - Soil and vegetation heat and water:
49 !
50 ALLOCATE(tgd%CUR%XWR (klu ))
51 ALLOCATE(tgd%CUR%XTG (klu,kground_layer ))
52 ALLOCATE(tgd%CUR%XWG (klu,kground_layer ))
53 ALLOCATE(tgd%CUR%XWGI (klu,kground_layer ))
54 ALLOCATE(tgd%CUR%XRESA (klu ))
55 !
56 ! - Vegetation: Ags Prognostic (YPHOTO = 'LAI', 'LST', 'AGS' or 'LST')
57 !
58 ALLOCATE(tgd%CUR%XAN (klu ))
59 ALLOCATE(tgd%CUR%XANDAY (klu ))
60 ALLOCATE(tgd%CUR%XANFM (klu ))
61 ALLOCATE(tgd%CUR%XLE (klu ))
62 !
63 ! - Vegetation (Ags 'NIT' 'NCB' option):
64 !
65 ALLOCATE(tgd%CUR%XBIOMASS (klu,tvg%NNBIOMASS ))
66 ALLOCATE(tgd%CUR%XRESP_BIOMASS (klu,tvg%NNBIOMASS ))
67 !
68 IF (lhook) CALL dr_hook('ALLOCATE_TEB_GARDEN',1,zhook_handle)
69 !
70 END SUBROUTINE allocate_teb_garden
subroutine allocate_teb_garden(TGD, TVG, KLU, KGROUND_LAYER)