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