SURFEX v8.1
General documentation of Surfex
write_diag_townn.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 write_diag_town_n (DTCO, HSELECT, U, TM, GDM, GRM, HPROGRAM,HWRITE)
7 ! ###############################################################################
8 !
9 !!**** *WRITE_DIAG_TOWN_n * - Chooses the surface schemes for town diagnostics
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!** METHOD
15 !! ------
16 !!
17 !! REFERENCE
18 !! ---------
19 !!
20 !!
21 !! AUTHOR
22 !! ------
23 !! V. Masson
24 !!
25 !! MODIFICATIONS
26 !! -------------
27 !! Original 01/2004
28 !!------------------------------------------------------------------
29 !
30 !
32 USE modd_surf_atm_n, ONLY : surf_atm_t
33 USE modd_surfex_n, ONLY : teb_model_t
36 !
37 USE modd_surf_par, ONLY : xundef
38 !
39 USE modi_write_diag_teb_n
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 !* 0.1 declarations of arguments
48 !
49 !
50 !
51 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
52  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
53 TYPE(surf_atm_t), INTENT(INOUT) :: U
54 TYPE(teb_model_t), INTENT(INOUT) :: TM
55 TYPE(teb_garden_model_t), INTENT(INOUT) :: GDM
56 TYPE(teb_greenroof_model_t), INTENT(INOUT) :: GRM
57 !
58  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
59  CHARACTER(LEN=3), INTENT(IN) :: HWRITE ! 'PGD' : only physiographic fields are written
60 REAL(KIND=JPRB) :: ZHOOK_HANDLE
61 ! ! 'ALL' : all fields are written
62 !
63 !
64 !* 0.2 declarations of local variables
65 !
66 !-------------------------------------------------------------------------------------
67 !
68 IF (lhook) CALL dr_hook('WRITE_DIAG_TOWN_N',0,zhook_handle)
69 IF (u%CTOWN=='TEB ') THEN
70  CALL write_diag_teb_n(dtco, hselect, u, tm, gdm, grm, hprogram,hwrite)
71 END IF
72 IF (lhook) CALL dr_hook('WRITE_DIAG_TOWN_N',1,zhook_handle)
73 !
74 !-------------------------------------------------------------------------------------
75 !
76 END SUBROUTINE write_diag_town_n
real, parameter xundef
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine write_diag_teb_n(DTCO, HSELECT, U, TM, GDM, GRM, HPROGRAM, HWRITE)
subroutine write_diag_town_n(DTCO, HSELECT, U, TM, GDM, GRM, HPROGRAM, HWRITE)