SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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 (DGU, U, &
7  tgro, tgrp, &
8  hprogram)
9 ! ###############################################
10 !
11 !!**** *WRITESURF_PGD_TEB_GREENROOF_n* - writes ISBA fields describing urban greenroofs
12 !!
13 !! PURPOSE
14 !! -------
15 !!
16 !!** METHOD
17 !! ------
18 !!
19 !! EXTERNAL
20 !! --------
21 !!
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! REFERENCE
27 !! ---------
28 !!
29 !!
30 !! AUTHOR
31 !! ------
32 !! A. Lemonsu & C. de Munck *Meteo France*
33 !!
34 !! MODIFICATIONS
35 !! -------------
36 !! Original 07/2011
37 !!
38 !-------------------------------------------------------------------------------
39 !
40 !* 0. DECLARATIONS
41 ! ------------
42 !
43 !
44 !
45 !
47 USE modd_surf_atm_n, ONLY : surf_atm_t
48 !
51 !
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 !
64 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
65 TYPE(surf_atm_t), INTENT(INOUT) :: u
66 !
67 TYPE(teb_greenroof_options_t), INTENT(INOUT) :: tgro
68 TYPE(teb_greenroof_pgd_t), INTENT(INOUT) :: tgrp
69 !
70  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling
71 
72 !
73 !* 0.2 Declarations of local variables
74 ! -------------------------------
75 !
76 INTEGER :: iresp ! IRESP : return-code if a problem appears
77  CHARACTER(LEN=12) :: yrecfm ! Name of the article to be read
78  CHARACTER(LEN=100):: ycomment ! Comment string
79 !
80 REAL(KIND=JPRB) :: zhook_handle
81 !
82 !-------------------------------------------------------------------------------
83 !
84 IF (lhook) CALL dr_hook('WRITESURF_PGD_TEB_GREENROOF_N',0,zhook_handle)
85 !
86 !* soil scheme option
87 !
88 yrecfm='GR_ISBA'
89 ycomment=yrecfm
90  CALL write_surf(dgu, u, &
91  hprogram,yrecfm,tgro%CISBA_GR,iresp,hcomment=ycomment)
92 !
93 !* thermal conductivity option
94 !
95 yrecfm='GR_SCOND'
96 ycomment=yrecfm
97  CALL write_surf(dgu, u, &
98  hprogram,yrecfm,tgro%CSCOND_GR,iresp,hcomment=ycomment)
99 !
100 !* number of soil layers
101 !
102 yrecfm='GR_LAYER'
103 ycomment=yrecfm
104  CALL write_surf(dgu, u, &
105  hprogram,yrecfm,tgro%NLAYER_GR,iresp,hcomment=ycomment)
106 !
107 !* number of time data for green roof chacteristics (VEG, LAI, EMIS, Z0)
108 !
109 yrecfm='GR_NTIME'
110 ycomment=yrecfm
111  CALL write_surf(dgu, u, &
112  hprogram,yrecfm,tgro%NTIME_GR,iresp,hcomment=ycomment)
113 !
114 yrecfm='GR_RUNOFFB'
115 ycomment=yrecfm
116  CALL write_surf(dgu, u, &
117  hprogram,yrecfm,tgrp%XRUNOFFB_GR,iresp,hcomment=ycomment)
118 !
119 yrecfm='GR_WDRAIN'
120 ycomment=yrecfm
121  CALL write_surf(dgu, u, &
122  hprogram,yrecfm,tgrp%XWDRAIN_GR,iresp,hcomment=ycomment)
123 !
124 IF (lhook) CALL dr_hook('WRITESURF_PGD_TEB_GREENROOF_N',1,zhook_handle)
125 !-------------------------------------------------------------------------------
126 !
127 END SUBROUTINE writesurf_pgd_teb_greenroof_n
subroutine writesurf_pgd_teb_greenroof_n(DGU, U, TGRO, TGRP, HPROGRAM)