SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
LIB
FM
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
69
nfityp
=
jpniil
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
yomhook::dr_hook
Definition:
yomhook.F90:20
modd_fmdeclar::nfityp
integer, dimension(1:jpnxlu) nfityp
Definition:
modd_fmdeclar.F90:58
modd_fmdeclar
Definition:
modd_fmdeclar.F90:2
modd_fmdeclar::nopefi
integer nopefi
Definition:
modd_fmdeclar.F90:56
parkind1::jprb
integer, parameter jprb
Definition:
parkind1.F90:32
yomhook::lhook
logical lhook
Definition:
yomhook.F90:15
fminit
subroutine fminit
Definition:
fminit.F90:3
parkind1
Definition:
parkind1.F90:1
modd_fmdeclar::jpniil
integer, parameter jpniil
Definition:
modd_fmdeclar.F90:48
yomhook
Definition:
yomhook.F90:1
Generated on Tue Jan 16 2018 16:23:20 for SURFEX v8.1 by
1.8.13