SURFEX v8.1
General documentation of Surfex
dealloc_watfluxn.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_watflux_n (WM)
7 ! #################################################################################
8 !
9 !!**** *DEALLOC_WATFLUX_n * - Deallocate all arrays
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!** METHOD
15 !! ------
16 !!
17 !! REFERENCE
18 !! ---------
19 !!
20 !!
21 !! AUTHOR
22 !! ------
23 !! V. Masson
24 !!
25 !! MODIFICATIONS
26 !! -------------
27 !! Original 01/2004
28 !!------------------------------------------------------------------
29 !
31 !
33 !
35 USE modd_watflux_n, ONLY : watflux_init
36 !
37 USE modd_sfx_grid_n, ONLY : grid_init
38 USE modd_canopy_n, ONLY : canopy_init
39 !
40 USE yomhook ,ONLY : lhook, dr_hook
41 USE parkind1 ,ONLY : jprb
42 !
43 IMPLICIT NONE
44 !
45 !* 0.1 declarations of arguments
46 !
47 !
48 !* 0.2 declarations of local variables
49 !
50 !-------------------------------------------------------------------------------------
51 !
52 TYPE(watflux_model_t), INTENT(INOUT) :: WM
53 !
54 REAL(KIND=JPRB) :: ZHOOK_HANDLE
55 
56 IF (lhook) CALL dr_hook('DEALLOC_WATFLUX_N',0,zhook_handle)
57 !
58  CALL diag_options_init(wm%DWO)
59  CALL diag_init(wm%DW)
60  CALL diag_init(wm%DWC)
61 !
62  CALL grid_init(wm%G)
63  CALL canopy_init(wm%SB)
64  CALL ch_watflux_init(wm%CHW)
65  CALL watflux_init(wm%W)
66 !
67 IF (lhook) CALL dr_hook('DEALLOC_WATFLUX_N',1,zhook_handle)
68 !
69 !-------------------------------------------------------------------------------------
70 !
71 END SUBROUTINE dealloc_watflux_n
72 
73 
subroutine diag_init(D)
Definition: modd_diagn.F90:224
subroutine dealloc_watflux_n(WM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine watflux_init(YWATFLUX)
logical lhook
Definition: yomhook.F90:15
subroutine grid_init(G)
subroutine diag_options_init(DGO)
Definition: modd_diagn.F90:176
subroutine ch_watflux_init(YCH_WATFLUX)
subroutine canopy_init(SB)