SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
dealloc_inland_watern.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_inland_water_n (CHF, CHW, FG, F, U, WG, W)
7 ! ###############################################################################
8 !
9 !!**** *DEALLOC_INLAND_WATER_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 !
30 !
31 !
32 !
33 !
34 !
35 !
36 USE modd_ch_flake_n, ONLY : ch_flake_t
39 USE modd_flake_n, ONLY : flake_t
40 USE modd_surf_atm_n, ONLY : surf_atm_t
42 USE modd_watflux_n, ONLY : watflux_t
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 USE modi_dealloc_flake_n
48 !
49 USE modi_dealloc_ideal_flux
50 !
51 USE modi_dealloc_watflux_n
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 declarations of arguments
56 !
57 !
58 !* 0.2 declarations of local variables
59 !
60 !-------------------------------------------------------------------------------------
61 !
62 
63 !
64 TYPE(ch_flake_t), INTENT(INOUT) :: chf
65 TYPE(ch_watflux_t), INTENT(INOUT) :: chw
66 TYPE(flake_grid_t), INTENT(INOUT) :: fg
67 TYPE(flake_t), INTENT(INOUT) :: f
68 TYPE(surf_atm_t), INTENT(INOUT) :: u
69 TYPE(watflux_grid_t), INTENT(INOUT) :: wg
70 TYPE(watflux_t), INTENT(INOUT) :: w
71 !
72 REAL(KIND=JPRB) :: zhook_handle
73 
74 IF (lhook) CALL dr_hook('DEALLOC_INLAND_WATER_N',0,zhook_handle)
75 IF (u%CWATER=='WATFLX') THEN
76  CALL dealloc_watflux_n(chw, wg, w)
77 ELSE IF (u%CWATER=='FLAKE ') THEN
78  CALL dealloc_flake_n(chf, fg, f)
79 ELSE IF (u%CWATER=='FLUX ') THEN
81 END IF
82 IF (lhook) CALL dr_hook('DEALLOC_INLAND_WATER_N',1,zhook_handle)
83 !
84 !-------------------------------------------------------------------------------------
85 !
86 END SUBROUTINE dealloc_inland_water_n
subroutine dealloc_flake_n(CHF, FG, F)
subroutine dealloc_watflux_n(CHW, WG, W)
subroutine dealloc_ideal_flux
subroutine dealloc_inland_water_n(CHF, CHW, FG, F, U, WG, W)