SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_nam_write_cover_tex.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_write_cover_tex(HPROGRAM)
7 ! ##############################################################
8 !
10 !
11 USE mode_pos_surf
12 !
13 USE modi_get_luout
14 USE modi_open_namelist
15 USE modi_close_namelist
16 !
17 !
18 USE yomhook ,ONLY : lhook, dr_hook
19 USE parkind1 ,ONLY : jprb
20 !
21 IMPLICIT NONE
22 !
23  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
24 !
25 INTEGER :: iluout ! output listing logical unit
26 INTEGER :: ilunam ! namelist file logical unit
27 LOGICAL :: gfound ! flag when namelist is present
28 REAL(KIND=JPRB) :: zhook_handle
29 !
30 !*****************************************************************************
31 !
32 IF (lhook) CALL dr_hook('READ_NAM_WRITE_COVER_TEX',0,zhook_handle)
33  CALL get_luout(hprogram,iluout)
34  CALL open_namelist(hprogram,ilunam)
35  CALL posnam(ilunam,'NAM_WRITE_COVER_TEX',gfound,iluout)
36 IF (gfound) READ(unit=ilunam,nml=nam_write_cover_tex)
37  CALL close_namelist(hprogram,ilunam)
38 IF (lhook) CALL dr_hook('READ_NAM_WRITE_COVER_TEX',1,zhook_handle)
39 !
40 END SUBROUTINE read_nam_write_cover_tex
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)
subroutine read_nam_write_cover_tex(HPROGRAM)