SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
open_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 open_aux_io_surf (&
7  hfile,hfiletype,hmask)
8 ! #######################################################
9 !
10 !!**** *OPEN_AUX_IO_SURF* - chooses the routine to OPENialize IO
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! S.Malardel *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 09/2003
36 !! Modified 04/2004 by P. LeMoigne: add HACTION if ASCII mode selected
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 !
43 !
44 !
45 !
46 !
47 USE yomhook ,ONLY : lhook, dr_hook
48 USE parkind1 ,ONLY : jprb
49 !
50 #ifdef SFX_ASC
51 USE modi_open_aux_io_surf_asc
52 #endif
53 !
54 #ifdef SFX_FA
55 USE modi_open_aux_io_surf_fa
56 #endif
57 !
58 #ifdef SFX_LFI
59 USE modi_open_aux_io_surf_lfi
60 #endif
61 !
62 #ifdef SFX_OL
63 USE modi_open_aux_io_surf_ol
64 #endif
65 !
66 #ifdef SFX_NC
67 USE modi_open_aux_io_surf_nc
68 #endif
69 !
70 #ifdef SFX_MNH
71 USE modi_mnhopen_aux_io_surf
72 #endif
73 !
74 IMPLICIT NONE
75 !
76 !* 0.1 Declarations of arguments
77 ! -------------------------
78 !
79 !
80 !
81  CHARACTER(LEN=28), INTENT(IN) :: hfile ! file name
82  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! main program
83  CHARACTER(LEN=6), INTENT(IN) :: hmask
84 REAL(KIND=JPRB) :: zhook_handle
85 !
86 !* 0.2 Declarations of local variables
87 ! -------------------------------
88 !
89 !-------------------------------------------------------------------------------
90 !
91 IF (lhook) CALL dr_hook('OPEN_AUX_IO_SURF',0,zhook_handle)
92 IF (hfiletype=='MESONH') THEN
93 #ifdef SFX_MNH
94  CALL mnhopen_aux_io_surf(hfile,hfiletype,hmask)
95 #endif
96 END IF
97 !
98 IF (hfiletype=='OFFLIN' ) THEN
99 #ifdef SFX_OL
101 #endif
102 ENDIF
103 !
104 IF (hfiletype=='ASCII ' ) THEN
105 #ifdef SFX_ASC
106  CALL open_aux_io_surf_asc(&
107  hfile,hfiletype,hmask)
108 #endif
109 ENDIF
110 !
111 IF (hfiletype=='AROME ' ) THEN
112 #ifdef SFX_ARO
113  CALL aroopen_aux_io_surf(hfile,hfiletype,hmask)
114 #endif
115 ENDIF
116 !
117 IF (hfiletype=='FA ' ) THEN
118 #ifdef SFX_FA
119  CALL open_aux_io_surf_fa(&
120  hfile,hfiletype,hmask)
121 #endif
122 ENDIF
123 !
124 IF (hfiletype=='LFI ' ) THEN
125 #ifdef SFX_LFI
126  CALL open_aux_io_surf_lfi(&
127  hfile,hfiletype,hmask)
128 #endif
129 ENDIF
130 !
131 IF (hfiletype=='NC ' ) THEN
132 #ifdef SFX_NC
133  CALL open_aux_io_surf_nc(&
134  hfile,hfiletype,hmask)
135 #endif
136 ENDIF
137 !
138 IF (lhook) CALL dr_hook('OPEN_AUX_IO_SURF',1,zhook_handle)
139 !
140 !
141 !-------------------------------------------------------------------------------
142 !
143 END SUBROUTINE open_aux_io_surf
subroutine open_aux_io_surf_ol
subroutine open_aux_io_surf_nc(HFILE, HFILETYPE, HMASK)
subroutine open_aux_io_surf(HFILE, HFILETYPE, HMASK)
subroutine open_aux_io_surf_asc(HFILE, HFILETYPE, HMASK)
subroutine open_aux_io_surf_fa(HFILE, HFILETYPE, HMASK)
subroutine open_aux_io_surf_lfi(HFILE, HFILETYPE, HMASK)