SURFEX v8.1
General documentation of Surfex
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, DMTO, DGO, DUT, T, TOP, HPROGRAM)
7 ! ######################################################
8 !
9 !!**** *WRITESURF_TEB_CONF* - routine to read the configuration for TEB
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 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 01/2003
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 USE modd_ch_teb_n, ONLY : ch_teb_t
42 USE modd_diag_n, ONLY : diag_options_t
44 USE modd_teb_n, ONLY : teb_t
46 !
47 USE modn_teb_n
48 !
50 !
51 USE modi_get_default_nam_n
52 !
53 USE yomhook ,ONLY : lhook, dr_hook
54 USE parkind1 ,ONLY : jprb
55 !
56 IMPLICIT NONE
57 !
58 !* 0.1 Declarations of arguments
59 ! -------------------------
60 !
61 !
62 TYPE(ch_teb_t), INTENT(INOUT) :: CHT
63 TYPE(diag_misc_teb_options_t), INTENT(INOUT) :: DMTO
64 TYPE(diag_options_t), INTENT(INOUT) :: DGO
65 TYPE(diag_utci_teb_t), INTENT(INOUT) :: DUT
66 TYPE(teb_t), INTENT(INOUT) :: T
67 TYPE(teb_options_t), INTENT(INOUT) :: TOP
68 !
69  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling TEB
70 
71 !
72 !* 0.2 Declarations of local variables
73 ! -------------------------------
74 !
75 INTEGER :: ILUDES
76 REAL(KIND=JPRB) :: ZHOOK_HANDLE
77 !
78 !-------------------------------------------------------------------------------
79 !
80 IF (lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',0,zhook_handle)
81  CALL get_default_nam_n(hprogram,'WRITE',iludes,lnam_teb_written)
82 !
83 IF (iludes==0 .AND. lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',1,zhook_handle)
84 IF (iludes==0) RETURN
85 !
86 !-------------------------------------------------------------------------------
87 !
88  CALL init_nam_tebn(t, top)
89  CALL init_nam_diag_tebn(dmto, dgo, dut)
90  CALL init_nam_ch_tebn(cht)
91 !
92 WRITE(unit=iludes,nml=nam_tebn)
93 WRITE(unit=iludes,nml=nam_diag_tebn)
94 WRITE(unit=iludes,nml=nam_ch_tebn)
95 !
96 IF (lhook) CALL dr_hook('WRITESURF_TEB_CONF_N',1,zhook_handle)
97 !-------------------------------------------------------------------------------
98 !
99 END SUBROUTINE writesurf_teb_conf_n
subroutine get_default_nam_n(HPROGRAM, HACTION, KLUDES, ONAM_WRITTEN)
subroutine init_nam_tebn(T, TOP)
Definition: modn_tebn.F90:126
subroutine init_nam_diag_tebn(DMTO, DGO, DUT)
Definition: modn_tebn.F90:198
integer, parameter jprb
Definition: parkind1.F90:32
subroutine writesurf_teb_conf_n(CHT, DMTO, DGO, DUT, T, TOP, HPRO
logical lhook
Definition: yomhook.F90:15
subroutine init_nam_ch_tebn(CHT)
Definition: modn_tebn.F90:168