SURFEX v8.1
General documentation of Surfex
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 ( WM, FM, U)
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 !
32 !
33 USE modd_surf_atm_n, ONLY : surf_atm_t
34 !
35 USE yomhook ,ONLY : lhook, dr_hook
36 USE parkind1 ,ONLY : jprb
37 !
38 USE modi_dealloc_flake_n
39 !
40 USE modi_dealloc_ideal_flux
41 !
42 USE modi_dealloc_watflux_n
43 !
44 IMPLICIT NONE
45 !
46 !* 0.1 declarations of arguments
47 !
48 !
49 !* 0.2 declarations of local variables
50 !
51 !-------------------------------------------------------------------------------------
52 !
53 TYPE(watflux_model_t), INTENT(INOUT) :: WM
54 TYPE(flake_model_t), INTENT(INOUT) :: FM
55 TYPE(surf_atm_t), INTENT(INOUT) :: U
56 !
57 REAL(KIND=JPRB) :: ZHOOK_HANDLE
58 
59 IF (lhook) CALL dr_hook('DEALLOC_INLAND_WATER_N',0,zhook_handle)
60 IF (u%CWATER=='WATFLX') THEN
61  CALL dealloc_watflux_n(wm)
62 ELSE IF (u%CWATER=='FLAKE ') THEN
63  CALL dealloc_flake_n(fm)
64 ELSE IF (u%CWATER=='FLUX ') THEN
66 END IF
67 IF (lhook) CALL dr_hook('DEALLOC_INLAND_WATER_N',1,zhook_handle)
68 !
69 !-------------------------------------------------------------------------------------
70 !
71 END SUBROUTINE dealloc_inland_water_n
subroutine dealloc_ideal_flux
subroutine dealloc_watflux_n(WM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine dealloc_inland_water_n(WM, FM, U)
logical lhook
Definition: yomhook.F90:15
subroutine dealloc_flake_n(FM)