SURFEX v8.1
General documentation of Surfex
prep_teb_greenroof_unif.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 prep_teb_greenroof_unif(KLUOUT,HSURF,PFIELD)
7 ! #################################################################################
8 !
9 !!**** *PREP_TEB_GREENROOF_UNIF* - prepares ISBA field from prescribed values
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!** METHOD
15 !! ------
16 !!
17 !! Based on "prep_teb_garden_unif"
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !!
23 !! AUTHOR
24 !! ------
25 !! A. Lemonsu & C. de Munck
26 !!
27 !! MODIFICATIONS
28 !! -------------
29 !! Original 07/2011
30 !!------------------------------------------------------------------
31 !
32 !
33 USE modd_prep, ONLY : cinterp_type
34 USE modd_data_cover_par, ONLY : nvegtype
35 USE modd_surf_par, ONLY : xundef
36 USE modd_prep_teb_greenroof,ONLY : xhug_surf_gr, xhug_root_gr, xhug_deep_gr, &
37  xhugi_surf_gr, xhugi_root_gr, xhugi_deep_gr, &
38  xtg_surf_gr, xtg_root_gr, xtg_deep_gr, &
39  xwr_def
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 !* 0.1 declarations of arguments
48 !
49 INTEGER, INTENT(IN) :: KLUOUT ! output listing logical unit
50  CHARACTER(LEN=7), INTENT(IN) :: HSURF ! type of field
51 REAL, POINTER, DIMENSION(:,:,:) :: PFIELD ! field to interpolate horizontally
52 !
53 !* 0.2 declarations of local variables
54 !
55 INTEGER :: JV ! loop counter
56 REAL(KIND=JPRB) :: ZHOOK_HANDLE
57 !
58 !-------------------------------------------------------------------------------------
59 !
60 IF (lhook) CALL dr_hook('PREP_TEB_GREENROOF_UNIF',0,zhook_handle)
61 SELECT CASE(hsurf)
62 !
63 !* 3.0 Orography
64 !
65  CASE('ZS ')
66  ALLOCATE(pfield(1,1,1))
67  pfield = 0.
68 
69 !
70 !* 3.1 Profile of soil relative humidity
71 !
72  CASE('WG ')
73  ALLOCATE(pfield(1,3,1))
74  pfield(:,1,1) = xhug_surf_gr
75  pfield(:,2,1) = xhug_root_gr
76  pfield(:,3,1) = xhug_deep_gr
77 !
78 !* 3.2 Profile of soil humidity for ice
79 
80  CASE('WGI ')
81  ALLOCATE(pfield(1,3,1))
82  pfield(:,1,1) = xhugi_surf_gr
83  pfield(:,2,1) = xhugi_root_gr
84  pfield(:,3,1) = xhugi_deep_gr
85 
86 !* 3.3 Profile of temperatures
87 
88  CASE('TG ')
89  ALLOCATE(pfield(1,3,1))
90  pfield(:,1,1) = xtg_surf_gr
91  pfield(:,2,1) = xtg_root_gr
92  pfield(:,3,1) = xtg_deep_gr
93 
94 !* 3.4 Other quantities
95 
96  CASE('WR ')
97  ALLOCATE(pfield(1,1,1))
98  pfield = xwr_def
99 
100  CASE('LAI ')
101  ALLOCATE(pfield(1,1,1))
102  pfield = xundef
103 
104 END SELECT
105 !
106 !* 4. Interpolation method
107 ! --------------------
108 !
109 cinterp_type='UNIF '
110 IF (lhook) CALL dr_hook('PREP_TEB_GREENROOF_UNIF',1,zhook_handle)
111 !
112 !-------------------------------------------------------------------------------------
113 END SUBROUTINE prep_teb_greenroof_unif
character(len=6) cinterp_type
Definition: modd_prep.F90:40
real, parameter xundef
subroutine prep_teb_greenroof_unif(KLUOUT, HSURF, PFIELD)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15