SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_nam_pgd_orog_filter.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_nam_pgd_orog_filter(HPROGRAM, KZSFILTER)
7 ! ##############################################################
8 !
9 !!**** *READ_NAM_PGD_OROG_FILTER* reads namelist for Orography
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !! METHOD
15 !! ------
16 !!
17 !
18 !! EXTERNAL
19 !! --------
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !! AUTHOR
28 !! ------
29 !!
30 !! B. Decharme Meteo-France
31 !!
32 !! MODIFICATION
33 !! ------------
34 !!
35 !! Original 02/2010
36 !----------------------------------------------------------------------------
37 !
38 !* 0. DECLARATION
39 ! -----------
40 !
41 USE modd_surf_par, ONLY : xundef
42 !
43 USE modi_get_luout
44 USE modi_open_namelist
45 USE modi_close_namelist
46 !
47 USE mode_pos_surf
48 !
49 !
50 USE yomhook ,ONLY : lhook, dr_hook
51 USE parkind1 ,ONLY : jprb
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 Declaration of arguments
56 ! ------------------------
57 !
58  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! Type of program
59 INTEGER, INTENT(OUT) :: kzsfilter ! number of orographic spatial filter iterations
60 !
61 !* 0.2 Declaration of local variables
62 ! ------------------------------
63 !
64 INTEGER :: iluout ! output listing logical unit
65 INTEGER :: ilunam ! namelist file logical unit
66 LOGICAL :: gfound ! flag when namelist is present
67 !
68 !* 0.3 Declaration of namelists
69 ! ------------------------
70 !
71 INTEGER :: nzsfilter ! number of orographic spatial filter iterations
72 REAL(KIND=JPRB) :: zhook_handle
73 !
74 namelist/nam_zs_filter/nzsfilter
75 !
76 !-------------------------------------------------------------------------------
77 !
78 !* 1. Initializations of defaults
79 ! ---------------------------
80 !
81 IF (lhook) CALL dr_hook('READ_NAM_PGD_OROG_FILTER',0,zhook_handle)
82 nzsfilter = 1
83 !
84  CALL get_luout(hprogram,iluout)
85 !
86 !-------------------------------------------------------------------------------
87 !
88 !* 2. Reading of namelist
89 ! -------------------
90 !
91  CALL open_namelist(hprogram,ilunam)
92 !
93  CALL posnam(ilunam,'NAM_ZS_FILTER',gfound,iluout)
94 IF (gfound) READ(unit=ilunam,nml=nam_zs_filter)
95 !
96  CALL close_namelist(hprogram,ilunam)
97 !
98 !-------------------------------------------------------------------------------
99 !
100 kzsfilter = nzsfilter ! number of orographic spatial filter iterations
101 IF (lhook) CALL dr_hook('READ_NAM_PGD_OROG_FILTER',1,zhook_handle)
102 !
103 !-------------------------------------------------------------------------------
104 !
105 END SUBROUTINE read_nam_pgd_orog_filter
subroutine read_nam_pgd_orog_filter(HPROGRAM, KZSFILTER)
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)