SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_default_dst.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_default_dst(HPROGRAM)
7 ! #######################################################
8 !
9 !!**** *READ_DEFAULT_DST* - 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_get_default_nam_n
44 !
45 USE modn_dst
46 !
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 IMPLICIT NONE
52 !
53 !* 0.1 Declarations of arguments
54 ! -------------------------
55 !
56  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling DST
57 
58 
59 !
60 !* 0.2 Declarations of local variables
61 ! -------------------------------
62 !
63 !
64 LOGICAL :: gfound ! Return code when searching namelist
65 INTEGER :: iluout ! output listing logical unit
66 INTEGER :: iludes ! .des file logical unit
67 REAL(KIND=JPRB) :: zhook_handle
68 !-------------------------------------------------------------------------------
69 !
70 IF (lhook) CALL dr_hook('READ_DEFAULT_DST',0,zhook_handle)
71  CALL get_luout(hprogram,iluout)
72 !
73  CALL get_default_nam_n(hprogram,'READ ',iludes)
74 !
75 IF (iludes==0 .AND. lhook) CALL dr_hook('READ_DEFAULT_DST',1,zhook_handle)
76 IF (iludes==0) RETURN
77 !
78 !* reading of new defaults in file
79 ! -------------------------------
80 !
81  CALL posnam(iludes,'NAM_SURF_DST',gfound,iluout)
82 IF (gfound) READ(unit=iludes,nml=nam_surf_dst)
83 IF (lhook) CALL dr_hook('READ_DEFAULT_DST',1,zhook_handle)
84 !
85 !-------------------------------------------------------------------------------
86 !
87 END SUBROUTINE read_default_dst
subroutine read_default_dst(HPROGRAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine get_default_nam_n(HPROGRAM, HACTION, KLUDES)