SURFEX v8.1
General documentation of Surfex
dealloc_gr_snow.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 dealloc_gr_snow(TPSNOW)
7 ! ##############################################
8 !
9 !!**** *DEALLOC_GR_SNOW* -
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! TPSNOW%SCHEME must yet be initialized
19 !!
20 !! EXTERNAL
21 !! --------
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !!
27 !! REFERENCE
28 !! ---------
29 !!
30 !! Book 2
31 !!
32 !! AUTHOR
33 !! ------
34 !!
35 !! S.Faroux Meteo-France
36 !!
37 !! MODIFICATIONS
38 !! -------------
39 !! Original 14/01/15
40 !
41 !-------------------------------------------------------------------------------
42 !
43 !* 0. DECLARATIONS
44 ! ------------
45 !
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 IMPLICIT NONE
52 !
53 !* 0.1 Declaration of arguments
54 ! ------------------------
55 !
56 TYPE(surf_snow), INTENT(INOUT) :: TPSNOW
57 REAL(KIND=JPRB) :: ZHOOK_HANDLE
58 !
59 !* 0.2 Declaration of local variables
60 ! ------------------------------
61 !
62 !-------------------------------------------------------------------------------
63 !
64 IF (lhook) CALL dr_hook('DEALLOC_GR_SNOW',0,zhook_handle)
65 !
66 DEALLOCATE(tpsnow%WSNOW)
67 DEALLOCATE(tpsnow%RHO)
68 DEALLOCATE(tpsnow%ALB)
69 DEALLOCATE(tpsnow%EMIS)
70 DEALLOCATE(tpsnow%TS )
71 DEALLOCATE(tpsnow%TEMP)
72 DEALLOCATE(tpsnow%HEAT)
73 DEALLOCATE(tpsnow%GRAN1)
74 DEALLOCATE(tpsnow%GRAN2)
75 DEALLOCATE(tpsnow%HIST )
76 DEALLOCATE(tpsnow%AGE )
77 DEALLOCATE(tpsnow%T)
78 !
79 IF (lhook) CALL dr_hook('DEALLOC_GR_SNOW',1,zhook_handle)
80 !-------------------------------------------------------------------------------
81 END SUBROUTINE dealloc_gr_snow
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine dealloc_gr_snow(TPSNOW)