SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_slt_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_slt_conf(HPROGRAM)
7 ! #######################################################
8 !
9 !!**** *READ_SLT_CONF* - routine to read the configuration for SLT
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_slt
47 USE modd_slt_surf, ONLY : cemisparam_slt
48 !
49 !
50 USE yomhook ,ONLY : lhook, dr_hook
51 USE parkind1 ,ONLY : jprb
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 Declarations of arguments
56 ! -------------------------
57 !
58  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling SLT
59 
60 !
61 !* 0.2 Declarations of local variables
62 ! -------------------------------
63 !
64 !
65 LOGICAL :: gfound ! Return code when searching namelist
66 INTEGER :: iluout ! logical unit of output file
67 INTEGER :: inam ! logical unit of namelist file
68 REAL(KIND=JPRB) :: zhook_handle
69 !-------------------------------------------------------------------------------
70 !
71 !* get output listing file logical unit
72 !
73 IF (lhook) CALL dr_hook('READ_SLT_CONF',0,zhook_handle)
74  CALL get_luout(hprogram,iluout)
75 !
76 !* open namelist file
77 !
78  CALL open_namelist(hprogram,inam)
79 !
80 !* reading of namelist
81 ! -------------------
82 !
83  CALL posnam(inam,'NAM_SURF_SLT',gfound,iluout)
84 IF (gfound) READ(unit=inam,nml=nam_surf_slt)
85 !
86 !* close namelist file
87 !
88  CALL close_namelist(hprogram,inam)
89 IF (lhook) CALL dr_hook('READ_SLT_CONF',1,zhook_handle)
90 !
91 !-------------------------------------------------------------------------------
92 !
93 END SUBROUTINE read_slt_conf
subroutine read_slt_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)