SURFEX v8.1
General documentation of Surfex
read_nam_prep_watfluxn.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_prep_watflux_n(HPROGRAM)
7 ! #######################################################
8 !
9 !---------------------------------------
10 !
11 USE modd_surf_par, ONLY : xundef, nundef
13 !
14 USE modi_default_prep_watflux
15 !
17 USE modi_get_luout
18 USE modi_open_namelist
19 USE modi_close_namelist
20 USE mode_pos_surf
21 !
22 !
23 USE yomhook ,ONLY : lhook, dr_hook
24 USE parkind1 ,ONLY : jprb
25 !
26 IMPLICIT NONE
27 !
28  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
29 !
30 INTEGER :: ILUNAM ! logical unit of namelist file
31 INTEGER :: ILUOUT
32 LOGICAL :: GFOUND ! Return code when searching namelist
33 REAL(KIND=JPRB) :: ZHOOK_HANDLE
34 !
35 !---------------------------------------
36 !
37 IF (lhook) CALL dr_hook('READ_NAM_PREP_WATFLUX_N',0,zhook_handle)
42 !
43  CALL get_luout(hprogram,iluout)
44 !
45 !
47 !
48  CALL open_namelist(hprogram,ilunam)
49  CALL posnam(ilunam,'NAM_PREP_WATFLUX',gfound,iluout)
50 IF (gfound) READ(unit=ilunam,nml=nam_prep_watflux)
51  CALL close_namelist(hprogram,ilunam)
52 !
53  CALL test_nam_var_surf(iluout,'CTYPE', ctype, ' ','GRIB ','MESONH','ASCII ','LFI ','FA ')
54  CALL test_nam_var_surf(iluout,'CTYPEPGD', ctypepgd, ' ','GRIB ','MESONH','ASCII ','LFI ','FA ')
55 IF (lhook) CALL dr_hook('READ_NAM_PREP_WATFLUX_N',1,zhook_handle)
56 !
57 !------------------------------------
58 !
59 END SUBROUTINE read_nam_prep_watflux_n
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
real, parameter xundef
subroutine default_prep_watflux
integer, parameter jprb
Definition: parkind1.F90:32
subroutine read_nam_prep_watflux_n(HPROGRAM)
integer, parameter nundef
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)