SURFEX v8.1
General documentation of Surfex
dealloc_naturen.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_nature_n (IM, U)
7 ! ###############################################################################
8 !
9 !!**** *DEALLOC_NATURE_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 USE modd_surfex_n, ONLY : isba_model_t
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_isba_n
40 !
41 IMPLICIT NONE
42 !
43 !* 0.1 declarations of arguments
44 !
45 !
46 !* 0.2 declarations of local variables
47 !
48 !-------------------------------------------------------------------------------------
49 !
50 TYPE(isba_model_t), INTENT(INOUT) :: IM
51 TYPE(surf_atm_t), INTENT(INOUT) :: U
52 !
53 REAL(KIND=JPRB) :: ZHOOK_HANDLE
54 
55 IF (lhook) CALL dr_hook('DEALLOC_NATURE_N',0,zhook_handle)
56 IF (u%CNATURE=='ISBA ' .OR. u%CNATURE=='TSZ0 ') THEN
57  CALL dealloc_isba_n(im)
58 ELSE IF (u%CNATURE=='FLUX ') THEN
60 END IF
61 IF (lhook) CALL dr_hook('DEALLOC_NATURE_N',1,zhook_handle)
62 !
63 !-------------------------------------------------------------------------------------
64 !
65 END SUBROUTINE dealloc_nature_n
subroutine dealloc_ideal_flux
integer, parameter jprb
Definition: parkind1.F90:32
subroutine dealloc_nature_n(IM, U)
logical lhook
Definition: yomhook.F90:15
subroutine dealloc_isba_n(IM)