SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
close_aux_io_surf_nc.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_nc(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_nc,ONLY:nid_nc,cmask,nmask
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 include "netcdf.inc"
48 !
49 !* 0.1 Declarations of arguments
50 ! -------------------------
51 !
52  CHARACTER(LEN=28), INTENT(IN) :: hfile ! file name
53  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! main program
54 !
55 !* 0.2 Declarations of local variables
56 ! -------------------------------
57 !
58 INTEGER :: iret ! return code
59 REAL(KIND=JPRB) :: zhook_handle
60 !-------------------------------------------------------------------------------
61 !
62 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_NC',0,zhook_handle)
63 !
64 iret = nf_close(nid_nc)
65 !
66  cmask=' '
67 DEALLOCATE(nmask)
68 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_NC',1,zhook_handle)
69 !
70 !-------------------------------------------------------------------------------
71 !
72 END SUBROUTINE close_aux_io_surf_nc
subroutine close_aux_io_surf_nc(HFILE, HFILETYPE)