SURFEX v8.1
General documentation of Surfex
writesurf_pgd_teb_greenroofn.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 writesurf_pgd_teb_greenroof_n (HSELECT, KTIME, IO, K, HPROGRAM)
7 ! ###############################################
8 !
9 !!**** *WRITESURF_PGD_TEB_GREENROOF_n* - writes ISBA fields describing urban greenroofs
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 !! A. Lemonsu & C. de Munck *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 07/2011
35 !!
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
42 USE modd_isba_n, ONLY : isba_k_t
43 !
45 !
46 USE yomhook ,ONLY : lhook, dr_hook
47 USE parkind1 ,ONLY : jprb
48 !
49 IMPLICIT NONE
50 !
51 !* 0.1 Declarations of arguments
52 ! -------------------------
53 !
54  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
55 !
56 INTEGER, INTENT(IN) :: KTIME
57 !
58 TYPE(isba_options_t), INTENT(INOUT) :: IO
59 TYPE(isba_k_t), INTENT(INOUT) :: K
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling
62 
63 !
64 !* 0.2 Declarations of local variables
65 ! -------------------------------
66 !
67 INTEGER :: IRESP ! IRESP : return-code if a problem appears
68  CHARACTER(LEN=12) :: YRECFM ! Name of the article to be read
69  CHARACTER(LEN=100):: YCOMMENT ! Comment string
70 !
71 REAL(KIND=JPRB) :: ZHOOK_HANDLE
72 !
73 !-------------------------------------------------------------------------------
74 !
75 IF (lhook) CALL dr_hook('WRITESURF_PGD_TEB_GREENROOF_N',0,zhook_handle)
76 !
77 !* soil scheme option
78 !
79 yrecfm='GR_ISBA'
80 ycomment=yrecfm
81  CALL write_surf(hselect,hprogram,yrecfm,io%CISBA,iresp,hcomment=ycomment)
82 !
83 !* thermal conductivity option
84 !
85 yrecfm='GR_SCOND'
86 ycomment=yrecfm
87  CALL write_surf(hselect,hprogram,yrecfm,io%CSCOND,iresp,hcomment=ycomment)
88 !
89 !* number of soil layers
90 !
91 yrecfm='GR_LAYER'
92 ycomment=yrecfm
93  CALL write_surf(hselect,hprogram,yrecfm,io%NGROUND_LAYER,iresp,hcomment=ycomment)
94 !
95 !* number of time data for green roof chacteristics (VEG, LAI, EMIS, Z0)
96 !
97 yrecfm='GR_NTIME'
98 ycomment=yrecfm
99  CALL write_surf(hselect, hprogram,yrecfm,ktime,iresp,hcomment=ycomment)
100 !
101 yrecfm='GR_RUNOFFB'
102 ycomment=yrecfm
103  CALL write_surf(hselect,hprogram,yrecfm,k%XRUNOFFB,iresp,hcomment=ycomment)
104 !
105 yrecfm='GR_WDRAIN'
106 ycomment=yrecfm
107  CALL write_surf(hselect, hprogram,yrecfm,k%XWDRAIN,iresp,hcomment=ycomment)
108 !
109 IF (lhook) CALL dr_hook('WRITESURF_PGD_TEB_GREENROOF_N',1,zhook_handle)
110 !-------------------------------------------------------------------------------
111 !
112 END SUBROUTINE writesurf_pgd_teb_greenroof_n
subroutine writesurf_pgd_teb_greenroof_n(HSELECT, KTIME, IO, K, H
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15