SURFEX v8.1
General documentation of Surfex
fminit.F90
Go to the documentation of this file.
1 ! ######spl
2  SUBROUTINE fminit
3  USE parkind1, ONLY : jprb
4  USE yomhook , ONLY : lhook, dr_hook
5 ! #################
6 !
7 !!**** *FMINIT* - routine to initialize the management arrays used by the FM-routines
8 !!
9 !! PURPOSE
10 !! -------
11 !
12 ! The purpose of FMINIT is to initialize the management arrays used
13 ! by the other FM-routines. These arrays allow to associate each logical
14 ! unit number with the given file name.
15 ! FMINIT is only called when FMATTR is called for the very
16 ! first time.
17 ! Furthermore, FMINIT opens unit 10 which is dedicated to the pipe
18 ! in which the transfer orders are written (in FMCLOS). Thus, unit 10
19 ! is specific and unavailable for common file management.
20 !
21 !!** METHOD
22 !! ------
23 !!
24 !! Array intrinsics of fortran 90 are used
25 !!
26 !! EXTERNAL
27 !! --------
28 !!
29 !! NONE
30 !!
31 !! IMPLICIT ARGUMENTS
32 !! ------------------
33 !!
34 !! MODULE: MODD_FMDECLAR contains management parameters and
35 !! storage arrays to move information around at the
36 !! level of all "FM"-routines.
37 !!
38 !! REFERENCE
39 !! ---------
40 !!
41 !! see the Technical Specifications Report for the Meso-nh project
42 !! (in French)
43 !!
44 !! AUTHOR
45 !! ------
46 !!
47 !! C. FISCHER *METEO-FRANCE*
48 !!
49 !! MODIFICATIONS
50 !! -------------
51 !!
52 !! original 06/94
53 !! modified by C. Fischer 22/11/94 (open unit 10)
54 !!
55 !----------------------------------------------------------------------------
56 !
57 !* 0. DECLARATIONS
58 ! ------------
59 !
60 USE modd_fmdeclar
61 
62 IMPLICIT NONE
63 !----------------------------------------------------------------------------
64 
65 REAL(KIND=JPRB) :: ZHOOK_HANDLE
66 IF (lhook) CALL dr_hook('FMINIT',0,zhook_handle)
67 nopefi=0
68 
70 
71 CNAMFI=CPUDFN ; CNAMFI(1:32)=CPUNLU
72 
73 !OPEN(UNIT=10,FILE='pipe_name',FORM='FORMATTED')
74 
75 IF (lhook) CALL dr_hook('FMINIT',1,zhook_handle)
76 RETURN
77  IF (lhook) CALL dr_hook('FMINIT',1,zhook_handle)
78  END SUBROUTINE fminit
integer, dimension(1:jpnxlu) nfityp
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine fminit
Definition: fminit.F90:3
integer, parameter jpniil