SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
close_aux_io_surf_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_aux_io_surf_lfi(HFILE,HFILETYPE)
7 ! #######################################################
8 !
9 !!**** *CLOSE_AUX_IO_SURF* - chooses the routine to OPENialize IO
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 !-------------------------------------------------------------------------------
35 !
36 !* 0. DECLARATIONS
37 ! ------------
38 !
39 USE modd_io_surf_lfi,ONLY:cluout_lfi,cmask,nmask
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 !* 0.1 Declarations of arguments
48 ! -------------------------
49 !
50  CHARACTER(LEN=28), INTENT(IN) :: hfile ! file name
51  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! main program
52 !
53 !* 0.2 Declarations of local variables
54 ! -------------------------------
55 !
56 INTEGER :: iret ! return code
57 REAL(KIND=JPRB) :: zhook_handle
58 !-------------------------------------------------------------------------------
59 !
60 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_LFI',0,zhook_handle)
61  CALL fmclos(hfile,'KEEP',cluout_lfi,iret)
62 !
63  cmask=' '
64 DEALLOCATE(nmask)
65 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_LFI',1,zhook_handle)
66 !
67 !-------------------------------------------------------------------------------
68 !
69 END SUBROUTINE close_aux_io_surf_lfi
subroutine close_aux_io_surf_lfi(HFILE, HFILETYPE)