SURFEX v8.1
General documentation of Surfex
dealloc_flaken.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_flake_n (FM)
7 ! #################################################################################
8 !
9 !!**** *DEALLOC_FLAKE_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 !! Modified 04/2013, P. Le Moigne: FLake chemistry and XZ0
29 !!------------------------------------------------------------------
30 !
31 USE modd_surfex_n, ONLY : flake_model_t
32 !
34 USE modd_flake_n, ONLY : flake_init
35 !
36 USE modd_sfx_grid_n, ONLY : grid_init
37 USE modd_canopy_n, ONLY : canopy_init
38 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 !* 0.1 declarations of arguments
48 !
49 TYPE(flake_model_t), INTENT(INOUT) :: FM
50 !
51 !* 0.2 declarations of local variables
52 !
53 REAL(KIND=JPRB) :: ZHOOK_HANDLE
54 !-------------------------------------------------------------------------------------
55 !
56 IF (lhook) CALL dr_hook('DEALLOC_FLAKE_N',0,zhook_handle)
57 !
58  CALL diag_options_init(fm%DFO)
59  CALL diag_init(fm%DF)
60  CALL diag_init(fm%DFC)
61  CALL diag_misc_flake_init(fm%DMF)
62 !
63  CALL grid_init(fm%G)
64  CALL canopy_init(fm%SB)
65  CALL ch_flake_init(fm%CHF)
66  CALL flake_init(fm%F)
67 !
68 IF (lhook) CALL dr_hook('DEALLOC_FLAKE_N',1,zhook_handle)
69 !
70 !-------------------------------------------------------------------------------------
71 !
72 END SUBROUTINE dealloc_flake_n
73 
74 
subroutine diag_init(D)
Definition: modd_diagn.F90:224
subroutine ch_flake_init(YCH_FLAKE)
subroutine flake_init(YFLAKE)
subroutine diag_misc_flake_init(DMF)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine grid_init(G)
subroutine dealloc_flake_n(FM)
subroutine diag_options_init(DGO)
Definition: modd_diagn.F90:176
subroutine canopy_init(SB)