SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
deepsoil_update.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 deepsoil_update (I, &
7  kmonth)
8 ! ###############################################################
9 !!**** *DEEPSOIL_UPDATE*
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 ! performs the time evolution of DEEPSOIL
15 !
16 !!** METHOD
17 !! ------
18 !!
19 !! EXTERNAL
20 !! --------
21 !! none
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! none
27 !!
28 !! REFERENCE
29 !! ---------
30 !!
31 !!
32 !! AUTHOR
33 !! ------
34 !!
35 !! P. Le Moigne * Meteo-France *
36 !!
37 !! MODIFICATIONS
38 !! -------------
39 !! Original 05/2008
40 !!
41 !-------------------------------------------------------------------------------
42 !
43 !* 0. DECLARATIONS
44 ! ------------
45 !
46 !
47 USE modd_isba_n, ONLY : isba_t
48 !
49 USE modd_deepsoil, ONLY : xtdeep_cli, xgammat_cli
50 !
51 !
52 USE yomhook ,ONLY : lhook, dr_hook
53 USE parkind1 ,ONLY : jprb
54 !
55 IMPLICIT NONE
56 !
57 !* 0.1 declarations of arguments
58 !
59 !
60 !
61 TYPE(isba_t), INTENT(INOUT) :: i
62 !
63 INTEGER, INTENT(IN) :: kmonth ! current month
64 !
65 !* 0.2 declarations of local variables
66 !
67 INTEGER :: ip
68 REAL(KIND=JPRB) :: zhook_handle
69 !-----------------------------------------------------------------
70 !
71 IF (lhook) CALL dr_hook('DEEPSOIL_UPDATE',0,zhook_handle)
72 DO ip=1,SIZE(i%XTDEEP)
73  !
74  i%XTDEEP (ip) = xtdeep_cli(kmonth)
75  !
76  i%XGAMMAT(ip) = 1. / xgammat_cli(kmonth)
77  !
78 ENDDO
79 IF (lhook) CALL dr_hook('DEEPSOIL_UPDATE',1,zhook_handle)
80 !
81 !-----------------------------------------------------------------
82 !
83 END SUBROUTINE deepsoil_update
subroutine deepsoil_update(I, KMONTH)