SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
close_aux_io_surf.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(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 !! S.Malardel *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 09/2003
35 !! Modified 04/2004 by P. LeMoigne: add HACTION if ASCII mode selected
36 !! B. Decharme (03/2014) read fa file in prep
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 !
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 #ifdef SFX_ASC
48 USE modi_close_aux_io_surf_asc
49 #endif
50 !
51 #ifdef SFX_FA
52 USE modi_close_aux_io_surf_fa
53 #endif
54 !
55 #ifdef SFX_LFI
56 USE modi_close_aux_io_surf_lfi
57 #endif
58 !
59 #ifdef SFX_OL
60 USE modi_close_aux_io_surf_ol
61 #endif
62 !
63 #ifdef SFX_NC
64 USE modi_close_aux_io_surf_nc
65 #endif
66 !
67 #ifdef SFX_MNH
68 USE modi_mnhclose_aux_io_surf
69 #endif
70 !
71 IMPLICIT NONE
72 !
73 !* 0.1 Declarations of arguments
74 ! -------------------------
75 !
76  CHARACTER(LEN=28), INTENT(IN) :: hfile ! file name
77  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! main program
78 REAL(KIND=JPRB) :: zhook_handle
79 !
80 !* 0.2 Declarations of local variables
81 ! -------------------------------
82 !
83 !-------------------------------------------------------------------------------
84 !
85 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF',0,zhook_handle)
86 IF (hfiletype=='MESONH') THEN
87 #ifdef SFX_MNH
88  CALL mnhclose_aux_io_surf(hfile,hfiletype)
89 #endif
90 END IF
91 !
92 IF (hfiletype=='OFFLIN' ) THEN
93 #ifdef SFX_OL
95 #endif
96 ENDIF
97 !
98 IF (hfiletype=='NC ' ) THEN
99 #ifdef SFX_NC
100  CALL close_aux_io_surf_nc(hfile,hfiletype)
101 #endif
102 ENDIF
103 !
104 IF (hfiletype=='ASCII ' ) THEN
105 #ifdef SFX_ASC
106  CALL close_aux_io_surf_asc(hfile,hfiletype)
107 #endif
108 ENDIF
109 !
110 IF (hfiletype=='AROME ' ) THEN
111 #ifdef SFX_ARO
112  CALL aroclose_aux_io_surf(hfile,hfiletype)
113 #endif
114 ENDIF
115 !
116 IF (hfiletype=='FA ' ) THEN
117 #ifdef SFX_FA
118  CALL close_aux_io_surf_fa(hfile,hfiletype)
119 #endif
120 ENDIF
121 !
122 IF (hfiletype=='LFI ' ) THEN
123 #ifdef SFX_LFI
124  CALL close_aux_io_surf_lfi(hfile,hfiletype)
125 #endif
126 ENDIF
127 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF',1,zhook_handle)
128 !
129 !-------------------------------------------------------------------------------
130 !
131 END SUBROUTINE close_aux_io_surf
subroutine close_aux_io_surf(HFILE, HFILETYPE)
subroutine close_aux_io_surf_nc(HFILE, HFILETYPE)
subroutine close_aux_io_surf_asc(HFILE, HFILETYPE)
subroutine close_aux_io_surf_lfi(HFILE, HFILETYPE)
subroutine close_aux_io_surf_ol
subroutine close_aux_io_surf_fa(HFILE, HFILETYPE)