SURFEX v8.1
General documentation of Surfex
allocate_teb_veg.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_veg (PEK, KLU,KGROUND_LAYER,KNBIOMASS)
7 ! ##########################################################################
8 !
9 !
10 USE modd_isba_n, ONLY : isba_pe_t
11 !
12 USE yomhook ,ONLY : lhook, dr_hook
13 USE parkind1 ,ONLY : jprb
14 !
15 IMPLICIT NONE
16 !
17 !
18 TYPE(isba_pe_t), INTENT(INOUT) :: PEK
19 !
20 INTEGER, INTENT(IN) :: KLU
21 INTEGER, INTENT(IN) :: KGROUND_LAYER
22 INTEGER, INTENT(IN) :: KNBIOMASS
23 REAL(KIND=JPRB) :: ZHOOK_HANDLE
24 !
25 !-------------------------------------------------------------------------------
26 !
27 ! Mask and number of grid elements containing patches/tiles:
28 !
29 IF (lhook) CALL dr_hook('ALLOCATE_TEB_VEG',0,zhook_handle)
30 !
31 !-------------------------------------------------------------------------------
32 !
33 ! Averaged Surface radiative parameters:
34 !
35 ALLOCATE(pek%XSNOWFREE_ALB (klu))
36 ALLOCATE(pek%XSNOWFREE_ALB_VEG (klu))
37 ALLOCATE(pek%XSNOWFREE_ALB_SOIL (klu))
38 !
39 !-------------------------------------------------------------------------------
40 !
41 ! Prognostic variables:
42 !
43 !
44 ! - Soil and vegetation heat and water:
45 !
46 ALLOCATE(pek%XWR (klu ))
47 ALLOCATE(pek%XTG (klu,kground_layer ))
48 ALLOCATE(pek%XWG (klu,kground_layer ))
49 ALLOCATE(pek%XWGI (klu,kground_layer ))
50 ALLOCATE(pek%XRESA (klu ))
51 !
52 ! - Vegetation: Ags Prognostic
53 !
54 ALLOCATE(pek%XAN (klu ))
55 ALLOCATE(pek%XANDAY (klu ))
56 ALLOCATE(pek%XANFM (klu ))
57 ALLOCATE(pek%XLE (klu ))
58 !
59 ! - Vegetation (Ags 'NIT' 'NCB' option):
60 !
61 ALLOCATE(pek%XBIOMASS (klu,knbiomass ))
62 ALLOCATE(pek%XRESP_BIOMASS (klu,knbiomass ))
63 !
64 IF (lhook) CALL dr_hook('ALLOCATE_TEB_VEG',1,zhook_handle)
65 !
66 END SUBROUTINE allocate_teb_veg
subroutine allocate_teb_veg(PEK, KLU, KGROUND_LAYER, KNBIOMASS)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15