SURFEX v8.1
General documentation of Surfex
Surfex_Git2
src
SURFEX
control_temp_func.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
FUNCTION
control_temp_func
(PTEMP_IN)
RESULT
(PTEMPFUNC_RESULT)
7
8
!
9
! ###############################################################
10
!!** CONTROL_TEMP_FUNC
11
!!
12
!! PURPOSE
13
!! -------
14
!!
15
!!** METHOD
16
!! ------
17
!! Temperature control factor of decomposition.
18
!!
19
!! EXTERNAL
20
!! --------
21
!! none
22
!!
23
!! IMPLICIT ARGUMENTS
24
!! ------------------
25
!!
26
!! none
27
!!
28
!! REFERENCE
29
!! ---------
30
!!
31
!! Krinner et al., Global Biochemical Cycles, 2005
32
!! Gibelin et al. 2008, AFM
33
!!
34
!! AUTHOR
35
!! ------
36
!!
37
!! A.-L. Gibelin * Meteo-France *
38
!!
39
!! MODIFICATIONS
40
!! -------------
41
!! Original 23/06/09
42
!! B. Decharme 05/2012 : Optimization and ISBA-DIF coupling
43
!!
44
!-------------------------------------------------------------------------------
45
46
!
47
!* 0. DECLARATIONS
48
! ------------
49
!
50
USE
yomhook
,ONLY
:
lhook
,
dr_hook
51
USE
parkind1
,ONLY
:
jprb
52
!
53
IMPLICIT NONE
54
!
55
!* 0.1 declarations of arguments
56
!
57
REAL
,
DIMENSION(:)
,
INTENT(IN)
:: PTEMP_IN
! temperature (K)
58
!
59
!* 0.2 declarations of local variables
60
!
61
REAL
:: ZCOEF1
62
REAL
,
PARAMETER
:: ZCOEF2 = 10.0
63
REAL
,
PARAMETER
:: ZCOEF3 = 30.0
64
!
65
REAL
,
DIMENSION(SIZE(PTEMP_IN))
:: PTEMPFUNC_RESULT
! temperature control factor
66
!
67
REAL(KIND=JPRB)
:: ZHOOK_HANDLE
68
!
69
!
70
!* 1 Calculates temperature control factor
71
!
72
IF
(
lhook
)
CALL
dr_hook
(
'CONTROL_TEMP_FUNC'
,0,zhook_handle)
73
!
74
zcoef1 = log(2.0)
75
!
76
ptempfunc_result(:) = exp( (zcoef1/zcoef2) * (ptemp_in(:)-zcoef3) )
77
!
78
ptempfunc_result(:) = min( 1., ptempfunc_result(:) )
79
!
80
IF
(
lhook
)
CALL
dr_hook
(
'CONTROL_TEMP_FUNC'
,1,zhook_handle)
81
82
END FUNCTION
control_temp_func
83
84
control_temp_func
real function, dimension(size(ptemp_in)) control_temp_func(PTEMP_IN)
Definition:
control_temp_func.F90:7
yomhook::dr_hook
Definition:
yomhook.F90:20
parkind1::jprb
integer, parameter jprb
Definition:
parkind1.F90:32
yomhook::lhook
logical lhook
Definition:
yomhook.F90:15
parkind1
Definition:
parkind1.F90:1
yomhook
Definition:
yomhook.F90:1
Generated on Tue Jan 16 2018 16:23:22 for SURFEX v8.1 by
1.8.13