SURFEX v8.1
General documentation of Surfex
close_trip_namelist.F90
Go to the documentation of this file.
1 ! ############
2  SUBROUTINE close_trip_namelist(KLUNAM)
3 ! #######################################################
4 !
5 !!**** *CLOSE_TRIP_NAMELIST* - generic routine to close a namelist file
6 !!
7 !! PURPOSE
8 !! -------
9 !!
10 !!** METHOD
11 !! ------
12 !!
13 !! EXTERNAL
14 !! --------
15 !!
16 !!
17 !! IMPLICIT ARGUMENTS
18 !! ------------------
19 !!
20 !! REFERENCE
21 !! ---------
22 !!
23 !!
24 !! AUTHOR
25 !! ------
26 !! B. Decharme *Meteo France*
27 !!
28 !! MODIFICATIONS
29 !! -------------
30 !! Original 01/2013
31 !-------------------------------------------------------------------------------
32 !
33 !* 0. DECLARATIONS
34 ! ------------
35 !
36 USE yomhook ,ONLY : lhook, dr_hook
37 USE parkind1 ,ONLY : jprb
38 !
39 IMPLICIT NONE
40 !
41 !* 0.1 Declarations of arguments
42 ! -------------------------
43 !
44 INTEGER, INTENT(IN) :: KLUNAM ! logical unit of namelist
45 !
46 !* 0.2 Declarations of local variables
47 ! -------------------------------
48 !
49 REAL(KIND=JPRB) :: ZHOOK_HANDLE
50 !
51 !-------------------------------------------------------------------------------
52 IF (lhook) CALL dr_hook('CLOSE_TRIP_NAMELIST',0,zhook_handle)
53 !
54  CLOSE(klunam)
55 !
56 IF (lhook) CALL dr_hook('CLOSE_TRIP_NAMELIST',1,zhook_handle)
57 !-------------------------------------------------------------------------------
58 !
59 END SUBROUTINE close_trip_namelist
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine close_trip_namelist(KLUNAM)