SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
SURFEX
convert_teb.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
! ######spl
6
SUBROUTINE
convert_teb
(KTEB_PATCH,PCOVER,PTEB_PATCH)
7
! ##############################################################
8
!
9
!!**** *CONVERT_TEB* initialisation of TEB parameters valid for all patches
10
!!
11
!! PURPOSE
12
!! -------
13
!!
14
!! METHOD
15
!! ------
16
!!
17
!
18
!! EXTERNAL
19
!! --------
20
!!
21
!! IMPLICIT ARGUMENTS
22
!! ------------------
23
!!
24
!! REFERENCE
25
!! ---------
26
!!
27
!! AUTHOR
28
!! ------
29
!!
30
!! V. Masson Meteo-France
31
!!
32
!! MODIFICATION
33
!! ------------
34
!!
35
!! Original 11/11
36
!!
37
!----------------------------------------------------------------------------
38
!
39
!* 0. DECLARATION
40
! -----------
41
!
42
USE
modd_surf_par
, ONLY
:
xundef
43
!
44
!
45
USE
modi_ini_data_param
46
USE
modi_av_pgd
47
!
48
USE
yomhook
,ONLY
:
lhook
,
dr_hook
49
USE
parkind1
,ONLY
:
jprb
50
!
51
USE
modi_abor1_sfx
52
!
53
IMPLICIT NONE
54
!
55
!* 0.1 Declaration of arguments
56
! ------------------------
57
!
58
!
59
INTEGER
,
INTENT(IN)
:: KTEB_PATCH
60
!
61
REAL
,
DIMENSION(:,:)
,
INTENT(IN)
:: PCOVER
62
!
63
REAL
,
DIMENSION(:,:)
,
INTENT(OUT)
,
OPTIONAL
:: PTEB_PATCH
! fraction of each TEB patch
64
!
65
!* 0.2 Declaration of local variables
66
! ------------------------------
67
!
68
INTEGER
:: JPATCH
! loop counter on patch
69
INTEGER
:: JCOVER
! loop counter
70
!
71
!* 0.3 Declaration of namelists
72
! ------------------------
73
!
74
REAL(KIND=JPRB)
:: ZHOOK_HANDLE
75
!
76
!-------------------------------------------------------------------------------
77
!
78
!* 1. Initializations
79
! ---------------
80
!
81
IF
(
lhook
)
CALL
dr_hook
(
'CONVERT_TEB'
,0,zhook_handle)
82
!
83
!-------------------------------------------------------------------------------
84
!
85
! GARDEN fraction
86
! ---------------
87
IF
(
PRESENT
(pteb_patch))
THEN
88
DO
jpatch=1,kteb_patch
89
pteb_patch(:,jpatch) = 1./float(kteb_patch)
90
END DO
91
ENDIF
92
!
93
!
94
IF
(
lhook
)
CALL
dr_hook
(
'CONVERT_TEB'
,1,zhook_handle)
95
!
96
!-------------------------------------------------------------------------------
97
!
98
END SUBROUTINE
convert_teb
modd_surf_par
Definition:
modd_surf_par.F90:6
yomhook::dr_hook
Definition:
yomhook.F90:20
modd_surf_par::xundef
real, parameter xundef
Definition:
modd_surf_par.F90:43
parkind1::jprb
integer, parameter jprb
Definition:
parkind1.F90:32
modi_av_pgd
Definition:
av_pgd.F90:6
yomhook::lhook
logical lhook
Definition:
yomhook.F90:15
parkind1
Definition:
parkind1.F90:1
convert_teb
subroutine convert_teb(KTEB_PATCH, PCOVER, PTEB_PATCH)
Definition:
convert_teb.F90:7
yomhook
Definition:
yomhook.F90:1
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13