SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_dst_conf.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 read_dst_conf(HPROGRAM)
7 ! #######################################################
8 !
9 !!**** *READ_DST_CONF* - routine to read the configuration for DST
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. Grini *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 01/2003
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 USE mode_pos_surf
41 !
42 USE modi_get_luout
43 USE modi_open_namelist
44 USE modi_close_namelist
45 !
46 USE modn_dst
47 USE modd_dst_surf, ONLY : cemisparam_dst, cvermod, xflx_mss_fdg_fct
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling DST
58 
59 !
60 !* 0.2 Declarations of local variables
61 ! -------------------------------
62 !
63 !
64 LOGICAL :: gfound ! Return code when searching namelist
65 INTEGER :: iluout ! logical unit of output file
66 INTEGER :: inam ! logical unit of namelist file
67 REAL(KIND=JPRB) :: zhook_handle
68 !-------------------------------------------------------------------------------
69 !
70 !* get output listing file logical unit
71 !
72 IF (lhook) CALL dr_hook('READ_DST_CONF',0,zhook_handle)
73  CALL get_luout(hprogram,iluout)
74 !
75 !* open namelist file
76 !
77  CALL open_namelist(hprogram,inam)
78 !
79 !* reading of namelist
80 ! -------------------
81 !
82  CALL posnam(inam,'NAM_SURF_DST',gfound,iluout)
83 IF (gfound) READ(unit=inam,nml=nam_surf_dst)
84 !
85 !* close namelist file
86 !
87  CALL close_namelist(hprogram,inam)
88 IF (lhook) CALL dr_hook('READ_DST_CONF',1,zhook_handle)
89 !
90 !-------------------------------------------------------------------------------
91 !
92 END SUBROUTINE read_dst_conf
subroutine read_dst_conf(HPROGRAM)
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)