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