SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_pgd_cover_garden.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 read_pgd_cover_garden(HPROGRAM,OGARDEN)
7 ! ##########################################################################
8 !!
9 !! PURPOSE
10 !! -------
11 !! initialyse change water (not lake) to nature and/or town to rock keys
12 !!
13 !! METHOD
14 !! ------
15 !!
16 !! EXTERNAL
17 !! --------
18 !!
19 !!
20 !! IMPLICIT ARGUMENTS
21 !! ------------------
22 !!
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !! AUTHOR
28 !! ------
29 !!
30 !! B. Decharme Meteo-France
31 !!
32 !! MODIFICATION
33 !! ------------
34 !!
35 !! Original 05/03/09
36 !!
37 !! A. Lemonsu 05/2009 Key for vegetation in TEB (TEB-Veg)
38 !----------------------------------------------------------------------------
39 !
40 !* 0. DECLARATION
41 ! -----------
42 !
43 USE modi_open_namelist
44 USE modi_close_namelist
45 USE modi_get_luout
46 !
48 !
49 USE mode_pos_surf
50 !
51 !
52 USE yomhook ,ONLY : lhook, dr_hook
53 USE parkind1 ,ONLY : jprb
54 !
55 IMPLICIT NONE
56 !
57 !* 0.1 Declaration of dummy arguments
58 ! ------------------------------
59 !
60  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling READ_PGD
61 LOGICAL, INTENT(OUT) :: ogarden ! T: Urban green areas
62 !
63 !
64 !* 0.2 Declaration of local variables
65 ! ------------------------------
66 !
67 INTEGER :: iluout ! logical unit
68 INTEGER :: ilunam ! logical unit
69 !
70 LOGICAL :: gfound
71 REAL(KIND=JPRB) :: zhook_handle
72 !
73 !
74 !* 0.2 local namelist variables
75 ! ------------------------
76 !
77 !------------------------------------------------------------------------------
78 !
79 !* 1. defaults
80 !
81 IF (lhook) CALL dr_hook('READ_PGD_COVER_GARDEN',0,zhook_handle)
82 !
83 lgarden = .false.
84 !
85 !------------------------------------------------------------------------------
86 !
87 !* 2. opening of namelist
88 !
89  CALL get_luout(hprogram,iluout)
90 !
91  CALL open_namelist(hprogram,ilunam)
92 !
93 !-------------------------------------------------------------------------------
94 !
95 !* 3. reading of namelist
96 !
97  CALL posnam(ilunam,'NAM_PGD_SCHEMES',gfound,iluout)
98 IF (gfound) READ(unit=ilunam,nml=nam_pgd_schemes)
99 !
100 !-------------------------------------------------------------------------------
101 !
102 !* 4. initialize keys
103 !
104 ogarden = lgarden
105 !
106 !------------------------------------------------------------------------------
107 !
108 !* 5. close namelist file
109 !
110  CALL close_namelist(hprogram,ilunam)
111 IF (lhook) CALL dr_hook('READ_PGD_COVER_GARDEN',1,zhook_handle)
112 !
113 !-------------------------------------------------------------------------------
114 !
115 END SUBROUTINE read_pgd_cover_garden
subroutine read_pgd_cover_garden(HPROGRAM, OGARDEN)
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)