SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_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_cover_garden (&
7  hprogram,ogarden,hdir)
8 ! ######################################################################
9 !
10 !
11 !
12 !
14 !
15 !
16 USE yomhook ,ONLY : lhook, dr_hook
17 USE parkind1 ,ONLY : jprb
18 !
19 IMPLICIT NONE
20 !
21 !* dummy arguments
22 ! ---------------
23 !
24 !
25 !
26  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
27 LOGICAL, INTENT(OUT) :: ogarden ! T: Definition of urban green areas
28  CHARACTER(LEN=1), INTENT(IN), OPTIONAL :: hdir
29 !
30 !* local variables
31 ! ---------------
32 !
33  CHARACTER(LEN=1) :: ydir
34  CHARACTER(LEN=12) :: yrecfm ! Name of the article to be read
35 INTEGER :: iresp ! reading return code
36 !
37 INTEGER :: iversion ! surface version
38 INTEGER :: ibugfix ! surface bugfix
39 REAL(KIND=JPRB) :: zhook_handle
40 !
41 !
42 !------------------------------------------------------------------------------
43 !
44 IF (lhook) CALL dr_hook('READ_COVER_GARDEN',0,zhook_handle)
45 !
46 ydir = 'H'
47 IF (present(hdir)) ydir = hdir
48 !
49 yrecfm='VERSION'
50  CALL read_surf(&
51  hprogram,yrecfm,iversion,iresp,hdir=ydir)
52 !
53 IF (iversion<=5) THEN
54  ogarden = .false.
55 ELSE
56  yrecfm='GARDEN'
57  CALL read_surf(&
58  hprogram,yrecfm,ogarden,iresp,hdir=ydir)
59 END IF
60 IF (lhook) CALL dr_hook('READ_COVER_GARDEN',1,zhook_handle)
61 !
62 !------------------------------------------------------------------------------
63 !
64 END SUBROUTINE read_cover_garden
subroutine read_cover_garden(HPROGRAM, OGARDEN, HDIR)