SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
writesurf_teb_confn.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_teb_conf_n (CHT, DGMTO, DGT, DGUT, T, TOP, &
7  hprogram)
8 ! ######################################################
9 !
10 !!**** *WRITESURF_TEB_CONF* - routine to read the configuration for TEB
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 01/2003
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
42 !
43 !
44 !
45 USE modd_ch_teb_n, ONLY : ch_teb_t
47 USE modd_diag_teb_n, ONLY : diag_teb_t
49 USE modd_teb_n, ONLY : teb_t
51 !
52 USE modn_teb_n
53 !
54 USE modi_get_default_nam_n
55 !
56 !
57 USE yomhook ,ONLY : lhook, dr_hook
58 USE parkind1 ,ONLY : jprb
59 !
60 IMPLICIT NONE
61 !
62 !* 0.1 Declarations of arguments
63 ! -------------------------
64 !
65 !
66 TYPE(ch_teb_t), INTENT(INOUT) :: cht
67 TYPE(diag_misc_teb_options_t), INTENT(INOUT) :: dgmto
68 TYPE(diag_teb_t), INTENT(INOUT) :: dgt
69 TYPE(diag_utci_teb_t), INTENT(INOUT) :: dgut
70 TYPE(teb_t), INTENT(INOUT) :: t
71 TYPE(teb_options_t), INTENT(INOUT) :: top
72 !
73  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling TEB
74 
75 !
76 !* 0.2 Declarations of local variables
77 ! -------------------------------
78 !
79 INTEGER :: iludes
80 REAL(KIND=JPRB) :: zhook_handle
81 !
82 !-------------------------------------------------------------------------------
83 !
84 IF (lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',0,zhook_handle)
85  CALL get_default_nam_n(hprogram,'WRITE',iludes)
86 !
87 IF (iludes==0 .AND. lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',1,zhook_handle)
88 IF (iludes==0) RETURN
89 !
90 !-------------------------------------------------------------------------------
91 !
92  CALL init_nam_tebn(t, top)
93  CALL init_nam_diag_tebn(dgmto, dgt, dgut)
94  CALL init_nam_ch_tebn(cht)
95 !
96 WRITE(unit=iludes,nml=nam_tebn)
97 WRITE(unit=iludes,nml=nam_diag_tebn)
98 WRITE(unit=iludes,nml=nam_ch_tebn)
99 !
100 IF (lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',1,zhook_handle)
101 !-------------------------------------------------------------------------------
102 !
103 END SUBROUTINE writesurf_teb_conf_n
subroutine writesurf_teb_conf_n(CHT, DGMTO, DGT, DGUT, T, TOP, HPROGRAM)
subroutine init_nam_diag_tebn(DGMTO, DGT, DGUT)
Definition: modn_tebn.F90:198
subroutine init_nam_ch_tebn(CHT)
Definition: modn_tebn.F90:168
subroutine init_nam_tebn(T, TOP)
Definition: modn_tebn.F90:126
subroutine get_default_nam_n(HPROGRAM, HACTION, KLUDES)