SURFEX v8.1
General documentation of Surfex
dealloc_townn.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_town_n (TM, GDM, GRM, U)
7 ! ###############################################################################
8 !
9 !!**** *DEALLOC_TOWN_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 !
32 USE modd_surf_atm_n, ONLY : surf_atm_t
33 !
34 USE yomhook ,ONLY : lhook, dr_hook
35 USE parkind1 ,ONLY : jprb
36 !
37 USE modi_dealloc_ideal_flux
38 !
39 USE modi_dealloc_teb_n
40 !
41 IMPLICIT NONE
42 !
43 !* 0.1 declarations of arguments
44 !
45 TYPE(teb_model_t), INTENT(INOUT) :: TM
46 TYPE(teb_garden_model_t), INTENT(INOUT) :: GDM
47 TYPE(teb_greenroof_model_t), INTENT(INOUT) :: GRM
48 TYPE(surf_atm_t), INTENT(INOUT) :: U
49 !
50 !* 0.2 declarations of local variables
51 !
52 !-------------------------------------------------------------------------------------
53 !
54 !
55 REAL(KIND=JPRB) :: ZHOOK_HANDLE
56 
57 IF (lhook) CALL dr_hook('DEALLOC_TOWN_N',0,zhook_handle)
58 IF (u%CTOWN=='TEB ') THEN
59  CALL dealloc_teb_n(tm, gdm, grm)
60 ELSE IF (u%CTOWN=='FLUX ') THEN
62 END IF
63 IF (lhook) CALL dr_hook('DEALLOC_TOWN_N',1,zhook_handle)
64 !
65 !-------------------------------------------------------------------------------------
66 !
67 END SUBROUTINE dealloc_town_n
subroutine dealloc_ideal_flux
integer, parameter jprb
Definition: parkind1.F90:32
subroutine dealloc_teb_n(TM, GDM, GRM)
Definition: dealloc_tebn.F90:7
subroutine dealloc_town_n(TM, GDM, GRM, U)
logical lhook
Definition: yomhook.F90:15