SURFEX v8.1
General documentation of Surfex
get_var_townn.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 get_var_town_n (DGO, D, HPROGRAM,KI,PQS,PZ0,PZ0H)
7 ! ###################################################
8 !
9 !!**** *GET_VAR_TOWN_n* - routine to get variables defined only over town
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! P. Le Moigne *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 02/2006
35 ! M. Jidane 08/2008 Z0 and Z0H recovery from town tiles
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
43 !
44 USE modi_get_luout
45 USE modd_surf_par, ONLY : xundef
46 !
47 !
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57 TYPE(diag_options_t), INTENT(IN) :: DGO
58 TYPE(diag_t), INTENT(IN) :: D
59 !
60  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM
61 INTEGER, INTENT(IN) :: KI ! Number of points
62 REAL, DIMENSION(KI), INTENT(OUT) :: PQS ! surface humidity
63 REAL, DIMENSION(KI), INTENT(OUT) :: PZ0 ! surface roughness length
64 REAL, DIMENSION(KI), INTENT(OUT) :: PZ0H ! surface roughness length for heat
65 !
66 !
67 !* 0.2 Declarations of local variables
68 ! -------------------------------
69 !
70 INTEGER :: ILUOUT
71 REAL(KIND=JPRB) :: ZHOOK_HANDLE
72 !
73 !-------------------------------------------------------------------------------
74 IF (lhook) CALL dr_hook('GET_VAR_TOWN_N',0,zhook_handle)
75  CALL get_luout(hprogram,iluout)
76 !-------------------------------------------------------------------------------
77 !
78 IF (dgo%LSURF_VARS) THEN
79  pqs = d%XQS
80  ELSE
81  pqs = xundef
82 ENDIF
83 IF (dgo%LCOEF) THEN
84  pz0 = d%XZ0
85  pz0h = d%XZ0H
86  ELSE
87  pz0 = xundef
88  pz0h = xundef
89 ENDIF
90 IF (lhook) CALL dr_hook('GET_VAR_TOWN_N',1,zhook_handle)
91 !
92 !==============================================================================
93 !
94 END SUBROUTINE get_var_town_n
subroutine get_var_town_n(DGO, D, HPROGRAM, KI, PQS, PZ0, PZ0H)
real, parameter xundef
integer, parameter jprb
Definition: parkind1.F90:32
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15