SURFEX v8.1
General documentation of Surfex
pgd_town.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 pgd_town (DTCO, UG, U, USS, DTV, TM, GDM, GRM, HPROGRAM)
7 ! #############################################################
8 !
9 !!**** *PGD_TOWN* - routine to choose initialization of urban scheme
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 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 03/2004
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
43 USE modd_surf_atm_n, ONLY : surf_atm_t
44 USE modd_sso_n, ONLY : sso_t
45 USE modd_data_isba_n, ONLY : data_isba_t
46 !
47 USE modd_surfex_n, ONLY : teb_model_t
50 !
51 USE modi_pgd_teb
52 !
53 !
54 USE yomhook ,ONLY : lhook, dr_hook
55 USE parkind1 ,ONLY : jprb
56 !
57 IMPLICIT NONE
58 !
59 !* 0.1 Declarations of arguments
60 ! -------------------------
61 !
62 !
63 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
64 TYPE(surf_atm_grid_t), INTENT(INOUT) :: UG
65 TYPE(surf_atm_t), INTENT(INOUT) :: U
66 TYPE(sso_t), INTENT(INOUT) :: USS
67 TYPE(data_isba_t), INTENT(INOUT) :: DTV
68 TYPE(teb_model_t), INTENT(INOUT) :: TM
69 TYPE(teb_garden_model_t), INTENT(INOUT) :: GDM
70 TYPE(teb_greenroof_model_t), INTENT(INOUT) :: GRM
71 !
72  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
73 REAL(KIND=JPRB) :: ZHOOK_HANDLE
74 !
75 !
76 !* 0.2 Declarations of local variables
77 ! -------------------------------
78 !
79 !-------------------------------------------------------------------------------
80 !
81 !* 2. Selection of surface scheme
82 ! ---------------------------
83 !
84 IF (lhook) CALL dr_hook('PGD_TOWN',0,zhook_handle)
85 IF (u%CTOWN=='NONE ') THEN
86  IF (lhook) CALL dr_hook('PGD_TOWN',1,zhook_handle)
87  RETURN
88 ELSE IF (u%CTOWN=='FLUX ') THEN
89  IF (lhook) CALL dr_hook('PGD_TOWN',1,zhook_handle)
90  RETURN
91 ELSE IF (u%CTOWN=='TEB ') THEN
92  CALL pgd_teb(dtco, ug, u, uss, tm%TOP, tm%BOP, tm%G, tm%BDD, tm%DTT, tm%DTB, &
93  gdm%O, gdm%K, gdm%DTV, tm%TIR, &
94  grm%O, grm%S, grm%K, grm%DTV, hprogram)
95 END IF
96 IF (lhook) CALL dr_hook('PGD_TOWN',1,zhook_handle)
97 !
98 !-------------------------------------------------------------------------------
99 !
100 END SUBROUTINE pgd_town
subroutine pgd_teb(DTCO, UG, U, USS, TOP, BOP, TG, BDD, DTT, DTB,
Definition: pgd_teb.F90:7
integer, parameter jprb
Definition: parkind1.F90:32
subroutine pgd_town(DTCO, UG, U, USS, DTV, TM, GDM, GRM, HPROGRAM
Definition: pgd_town.F90:7
logical lhook
Definition: yomhook.F90:15