SURFEX v8.1
General documentation of Surfex
dealloc_seafluxn.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_seaflux_n (SM)
7 ! #################################################################################
8 !
9 !!**** *DEALLOC_SEAFLUX_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 !! S. Belamari 03/2014 other _SEA_ variables
29 !! S. Senesi 09/2013 introduce sea-ice-cover ans sea-surface salinity
30 !!------------------------------------------------------------------
31 !
35 !
38 USE modd_seaflux_n, ONLY : seaflux_init
39 USE modd_ocean_n, ONLY : ocean_init
41 !
42 USE modd_sfx_grid_n, ONLY : grid_init
43 USE modd_canopy_n, ONLY : canopy_init
44 !
46 !
47 USE modi_gltools_dealloc
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 declarations of arguments
55 !
56 !
57 !* 0.2 declarations of local variables
58 !
59 !
60 TYPE(seaflux_model_t), INTENT(INOUT) :: SM
61 !
62 REAL(KIND=JPRB) :: ZHOOK_HANDLE
63 !
64 !-------------------------------------------------------------------------------------
65 !
66 IF (lhook) CALL dr_hook('DEALLOC_SEAFLUX_N',0,zhook_handle)
67 !
68  CALL diag_options_init(sm%SD%O)
69  CALL diag_init(sm%SD%D)
70  CALL diag_init(sm%SD%DC)
71  CALL diag_init(sm%SD%DI)
72  CALL diag_init(sm%SD%DIC)
73  CALL diag_ocean_init(sm%SD%GO)
74  CALL diag_misc_seaice_init(sm%SD%DMI)
75  !
76  CALL data_seaflux_init(sm%DTS)
77  CALL grid_init(sm%G)
78  CALL canopy_init(sm%SB)
79  CALL ch_seaflux_init(sm%CHS)
80  CALL seaflux_init(sm%S)
81  CALL seaflux_init(sm%S)
82  CALL ocean_init(sm%O)
83  CALL ocean_rel_init(sm%OR)
84 !
85 !-------------------------------------------------------------------------------------
86 !
87 IF (ASSOCIATED(sm%S%TGLT%bat) .AND. sm%S%CSEAICE_SCHEME=='GELATO' ) CALL gltools_dealloc(sm%S%TGLT)
88 !
89 IF (lhook) CALL dr_hook('DEALLOC_SEAFLUX_N',1,zhook_handle)
90 !
91 !-------------------------------------------------------------------------------------
92 !
93 END SUBROUTINE dealloc_seaflux_n
94 
95 
subroutine diag_init(D)
Definition: modd_diagn.F90:224
subroutine ch_seaflux_init(YCH_SEAFLUX)
subroutine dealloc_seaflux_n(SM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine ocean_rel_init(YOCEAN_REL)
subroutine ocean_init(YOCEAN)
Definition: modd_oceann.F90:85
subroutine data_seaflux_init(YDATA_SEAFLUX)
logical lhook
Definition: yomhook.F90:15
subroutine grid_init(G)
subroutine diag_ocean_init(YDIAG_OCEAN)
subroutine seaflux_init(YSEAFLUX)
subroutine diag_misc_seaice_init(YDIAG_MISC_SEAICE)
subroutine diag_options_init(DGO)
Definition: modd_diagn.F90:176
subroutine canopy_init(SB)