SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
close_aux_io_surf_fa.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_fa(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 !! B. Decharme (03/2014) read fa file in prep
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 USE modd_io_surf_fa, ONLY : nunit_fa, nfull, cmask, nluout, nmask
41 !
42 !
43 USE yomhook ,ONLY : lhook, dr_hook
44 USE parkind1 ,ONLY : jprb
45 !
46 IMPLICIT NONE
47 !
48 !* 0.1 Declarations of arguments
49 ! -------------------------
50 !
51  CHARACTER(LEN=28), INTENT(IN) :: hfile ! file name
52  CHARACTER(LEN=6), INTENT(IN) :: hfiletype ! main program
53 INTEGER :: iret ! error code
54  CHARACTER(LEN=28) :: yfile
55 REAL(KIND=JPRB) :: zhook_handle
56 !
57 !* 0.2 Declarations of local variables
58 ! -------------------------------
59 !
60 !-------------------------------------------------------------------------------
61 !
62 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_FA',0,zhook_handle)
63 !
64 nfull = 0
65  cmask=' '
66 DEALLOCATE(nmask)
67  CALL fairme(iret,nunit_fa,'UNKNOWN')
68 !
69 yfile=hfile(1:len_trim(hfile))//'.fa'
70 WRITE(nluout,*)'HFILETYPE ',hfiletype,'END EXTERNAL',nunit_fa,yfile
71 !
72 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_FA',1,zhook_handle)
73 !
74 !-------------------------------------------------------------------------------
75 !
76 END SUBROUTINE close_aux_io_surf_fa
subroutine close_aux_io_surf_fa(HFILE, HFILETYPE)