SURFEX v8.1
General documentation of Surfex
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 !
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 USE netcdf
46 !
47 IMPLICIT NONE
48 !
49 !
50 !* 0.1 Declarations of arguments
51 ! -------------------------
52 !
53  CHARACTER(LEN=28), INTENT(IN) :: HFILE ! file name
54  CHARACTER(LEN=6), INTENT(IN) :: HFILETYPE ! main program
55 !
56 !* 0.2 Declarations of local variables
57 ! -------------------------------
58 !
59 INTEGER :: IRET ! return code
60 REAL(KIND=JPRB) :: ZHOOK_HANDLE
61 !-------------------------------------------------------------------------------
62 !
63 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_NC',0,zhook_handle)
64 !
65 iret = nf90_close(nid_nc)
66 !
67 CMASK=' '
68 DEALLOCATE(nmask)
69 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_NC',1,zhook_handle)
70 !
71 !-------------------------------------------------------------------------------
72 !
73 END SUBROUTINE close_aux_io_surf_nc
integer, parameter jprb
Definition: parkind1.F90:32
subroutine close_aux_io_surf_nc(HFILE, HFILETYPE)
integer, dimension(:), pointer nmask
logical lhook
Definition: yomhook.F90:15
character(len=6) cmask