SURFEX
V8_0
Surfex V8_0 release
Main Page
Data Types List
Files
File List
File Members
All
Classes
Files
Functions
Variables
src
OFFLIN
close_namelist_lfi.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
close_namelist_lfi
(HPROGRAM,KLUNAM)
7
! #######################################################
8
!
9
!!**** *CLOSE_NAMELIST_LFI* - closes namelists read by surface in MESOHN
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
!! V. Masson *Meteo France*
31
!!
32
!! MODIFICATIONS
33
!! -------------
34
!! Original 01/2003
35
!-------------------------------------------------------------------------------
36
!
37
!* 0. DECLARATIONS
38
! ------------
39
!
40
#ifdef SFX_LFI
41
USE
modd_fmdeclar
, ONLY
: cnamfi
42
#endif
43
USE
modd_io_surf_lfi
, ONLY
: cluout_lfi
44
45
!
46
USE
yomhook
,ONLY
: lhook, dr_hook
47
USE
parkind1
,ONLY
: jprb
48
!
49
IMPLICIT NONE
50
!
51
!* 0.1 Declarations of arguments
52
! -------------------------
53
!
54
CHARACTER(LEN=6)
,
INTENT(IN)
:: hprogram
! main program
55
INTEGER
,
INTENT(IN)
:: klunam
! logical unit of namelist
56
!
57
!* 0.2 Declarations of local variables
58
! -------------------------------
59
!
60
INTEGER
:: iresp
61
REAL(KIND=JPRB)
:: zhook_handle
62
!-------------------------------------------------------------------------------
63
!
64
!* closes the namelist
65
! -------------------
66
!
67
IF
(lhook) CALL dr_hook(
'CLOSE_NAMELIST_LFI'
,0,zhook_handle)
68
#ifdef SFX_LFI
69
CALL fmfree(cnamfi(klunam),cluout_lfi,iresp)
70
#endif
71
CLOSE
(klunam)
72
IF
(lhook) CALL dr_hook(
'CLOSE_NAMELIST_LFI'
,1,zhook_handle)
73
!
74
!-------------------------------------------------------------------------------
75
!
76
END SUBROUTINE
close_namelist_lfi
close_namelist_lfi
subroutine close_namelist_lfi(HPROGRAM, KLUNAM)
Definition:
close_namelist_lfi.F90:6
modd_io_surf_lfi
Definition:
modd_io_surf_lfi.F90:6
Generated on Fri May 13 2016 09:31:00 for SURFEX by
1.8.5