SURFEX v8.1
General documentation of Surfex
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 !
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 CFILEIN_FA = ' '
73 nunit_fa = 0
74 !
75 CDNOMC = 'header'
76 !
77 IF (lhook) CALL dr_hook('CLOSE_AUX_IO_SURF_FA',1,zhook_handle)
78 !
79 !-------------------------------------------------------------------------------
80 !
81 END SUBROUTINE close_aux_io_surf_fa
subroutine fairme(KREP, KNUMER, CDSTTU)
Definition: fairme.F90:232
integer, parameter jprb
Definition: parkind1.F90:32
character(len=6), save cdnomc
character(len=6) cmask
logical lhook
Definition: yomhook.F90:15
character(len=28), save cfilein_fa
integer, dimension(:), pointer nmask
subroutine close_aux_io_surf_fa(HFILE, HFILETYPE)