SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
modd_dstn.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 MODULE modd_dst_n
6 
7 !Purpose:
8 !Declare variables and constants necessary to do the dust calculations
9 !Here are only the variables which depend on the grid!
10 
11 !Author: Alf Grini <alf.grini@cnrm.meteo.fr>
12 
13 !
14 USE yomhook ,ONLY : lhook, dr_hook
15 USE parkind1 ,ONLY : jprb
16 !
17 IMPLICIT NONE
18 
19 TYPE dst_t
20  !
21  INTEGER, DIMENSION(:), POINTER :: NVT_DST !MASK: dust vegetation number to vegetation number
22  INTEGER, DIMENSION(:,:), POINTER :: NSIZE_PATCH_DST !Number of points for a patch and a vegetation class
23  INTEGER, DIMENSION(:,:,:), POINTER :: NR_PATCH_DST !Mask from patch-points to dust-points
24  REAL,DIMENSION(:), POINTER :: Z0_EROD_DST !Roughness length momentum over erodible dust emitter sfc
25  CHARACTER(LEN=6), DIMENSION(:), POINTER :: CSV_DST !Name of scalar variables
26  REAL, DIMENSION(:,:,:),POINTER :: XSFDST !Dust variables to be send to output
27  REAL, DIMENSION(:,:,:),POINTER :: XSFDSTM !Dust variables to be send to output
28  REAL,DIMENSION(:), POINTER :: XEMISRADIUS_DST !Number median radius for each source mode
29  REAL,DIMENSION(:), POINTER :: XEMISSIG_DST !sigma for each source mode
30  REAL,DIMENSION(:), POINTER :: XMSS_FRC_SRC !Mass fraction of each source mode
31  !
32 END TYPE dst_t
33 
34 
35 
36  CONTAINS
37 
38 !
39 
40 
41 
42 
43 SUBROUTINE dst_init(YDST)
44 TYPE(dst_t), INTENT(INOUT) :: ydst
45 REAL(KIND=JPRB) :: zhook_handle
46 IF (lhook) CALL dr_hook("MODD_DST_N:DST_INIT",0,zhook_handle)
47  nullify(ydst%NVT_DST)
48  nullify(ydst%NSIZE_PATCH_DST)
49  nullify(ydst%NR_PATCH_DST)
50  nullify(ydst%Z0_EROD_DST)
51  nullify(ydst%CSV_DST)
52  nullify(ydst%XSFDST)
53  nullify(ydst%XSFDSTM)
54  nullify(ydst%XEMISRADIUS_DST)
55  nullify(ydst%XEMISSIG_DST)
56  nullify(ydst%XMSS_FRC_SRC)
57 IF (lhook) CALL dr_hook("MODD_DST_N:DST_INIT",1,zhook_handle)
58 END SUBROUTINE dst_init
59 
60 
61 END MODULE modd_dst_n
subroutine dst_init(YDST)
Definition: modd_dstn.F90:43