SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
pgd_nature.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_nature (DTCO, DTI, DTZ, DGU, IG, I, UG, U, USS, &
7  hprogram,oecoclimap)
8 ! #############################################################
9 !
10 !!**** *PGD_NATURE* - routine to choose initialization of vegetation scheme
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 03/2004
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
42 USE modd_data_isba_n, ONLY : data_isba_t
43 USE modd_data_tsz0_n, ONLY : data_tsz0_t
45 USE modd_isba_grid_n, ONLY : isba_grid_t
46 USE modd_isba_n, ONLY : isba_t
48 USE modd_surf_atm_n, ONLY : surf_atm_t
50 
51 !
52 USE modi_pgd_isba
53 USE modi_pgd_tsz0_par
54 !
55 USE yomhook ,ONLY : lhook, dr_hook
56 USE parkind1 ,ONLY : jprb
57 !
58 IMPLICIT NONE
59 !
60 !* 0.1 Declarations of arguments
61 ! -------------------------
62 !
63 TYPE(data_cover_t), INTENT(INOUT) :: dtco
64 TYPE(data_isba_t), INTENT(INOUT) :: dti
65 TYPE(data_tsz0_t), INTENT(INOUT) :: dtz
66 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
67 TYPE(isba_grid_t), INTENT(INOUT) :: ig
68 TYPE(isba_t), INTENT(INOUT) :: i
69 TYPE(surf_atm_grid_t), INTENT(INOUT) :: ug
70 TYPE(surf_atm_t), INTENT(INOUT) :: u
71 TYPE(surf_atm_sso_t), INTENT(INOUT) :: uss
72 !
73 !
74  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
75 LOGICAL, INTENT(IN) :: oecoclimap ! T if parameters are computed with ecoclimap
76 REAL(KIND=JPRB) :: zhook_handle
77 ! ! F if all parameters must be specified
78 !
79 !
80 !* 0.2 Declarations of local variables
81 ! -------------------------------
82 !
83 !-------------------------------------------------------------------------------
84 !
85 !* 2. Selection of surface scheme
86 ! ---------------------------
87 !
88 IF (lhook) CALL dr_hook('PGD_NATURE',0,zhook_handle)
89 IF (u%CNATURE=='NONE ') THEN
90  IF (lhook) CALL dr_hook('PGD_NATURE',1,zhook_handle)
91  RETURN
92 ELSE IF (u%CNATURE=='FLUX ') THEN
93  IF (lhook) CALL dr_hook('PGD_NATURE',1,zhook_handle)
94  RETURN
95 ELSE IF (u%CNATURE=='ISBA ' .OR. u%CNATURE=='TSZ0') THEN
96  CALL pgd_isba(dtco, dti, dgu, ig, i, ug, u, uss, &
97  hprogram,oecoclimap)
98  IF (u%CNATURE=='TSZ0') CALL pgd_tsz0_par(dtz, &
99  hprogram)
100 END IF
101 IF (lhook) CALL dr_hook('PGD_NATURE',1,zhook_handle)
102 !
103 !-------------------------------------------------------------------------------
104 !
105 END SUBROUTINE pgd_nature
subroutine pgd_nature(DTCO, DTI, DTZ, DGU, IG, I, UG, U, USS, HPROGRAM, OECOCLIMAP)
Definition: pgd_nature.F90:6
subroutine pgd_isba(DTCO, DTI, DGU, IG, I, UG, U, USS, HPROGRAM, OECOCLIMAP)
Definition: pgd_isba.F90:6
subroutine pgd_tsz0_par(DTZ, HPROGRAM)
Definition: pgd_tsz0_par.F90:6