SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
modd_surf_atm_gridn.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 ! ##################
7 ! ##################
8 !
9 !!**** *MODD_SURF_ATM_GRID - declaration of SURF_ATM grid
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!
15 !!** IMPLICIT ARGUMENTS
16 !! ------------------
17 !! None
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !! AUTHOR
23 !! ------
24 !! V. Masson *Meteo France*
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !! Original 01/2004
29 !
30 !* 0. DECLARATIONS
31 ! ------------
32 !
33 !
34 USE yomhook ,ONLY : lhook, dr_hook
35 USE parkind1 ,ONLY : jprb
36 !
37 IMPLICIT NONE
38 
40 !-------------------------------------------------------------------------------
41 !
42 ! Grid definition
43 !
44  CHARACTER(LEN=10) :: CGRID ! grid type
45 ! ! "NONE " : no grid computations
46 ! ! "CONF PROJ " : conformal projection
47 !
48  REAL, POINTER, DIMENSION(:) :: XGRID_PAR ! lits of parameters used to define the grid
49 ! ! (depends on value of CGRID)
50  REAL, POINTER, DIMENSION(:) :: XGRID_FULL_PAR ! lits of parameters used to define the grid
51 ! ! (depends on value of CGRID)
52  INTEGER :: NGRID_PAR ! size of XGRID_PAR
53 !
54  INTEGER, POINTER, DIMENSION(:,:) :: NNEAR
55 !-------------------------------------------------------------------------------
56 !
57 ! General surface parameters:
58 !
59  REAL, POINTER, DIMENSION(:) :: XLAT ! latitude (degrees +North) (-)
60  REAL, POINTER, DIMENSION(:) :: XLON ! longitude (degrees +East) (-)
61  REAL, POINTER, DIMENSION(:) :: XMESH_SIZE ! mesh size (m2)
62  REAL, POINTER, DIMENSION(:) :: XJPDIR ! heading of J direction (deg from N clockwise)
63 !-------------------------------------------------------------------------------
64 !
65 
66 END TYPE surf_atm_grid_t
67 
68 
69 
70  CONTAINS
71 
72 !
73 
74 
75 
76 
77 SUBROUTINE surf_atm_grid_init(YSURF_ATM_GRID)
78 TYPE(surf_atm_grid_t), INTENT(INOUT) :: ysurf_atm_grid
79 REAL(KIND=JPRB) :: zhook_handle
80 IF (lhook) CALL dr_hook("MODD_SURF_ATM_GRID_N:SURF_ATM_GRID_INIT",0,zhook_handle)
81  nullify(ysurf_atm_grid%XGRID_PAR)
82  nullify(ysurf_atm_grid%NNEAR)
83  nullify(ysurf_atm_grid%XGRID_FULL_PAR)
84  nullify(ysurf_atm_grid%XLAT)
85  nullify(ysurf_atm_grid%XLON)
86  nullify(ysurf_atm_grid%XMESH_SIZE)
87  nullify(ysurf_atm_grid%XJPDIR)
88 ysurf_atm_grid%CGRID=' '
89 ysurf_atm_grid%NGRID_PAR=0
90 IF (lhook) CALL dr_hook("MODD_SURF_ATM_GRID_N:SURF_ATM_GRID_INIT",1,zhook_handle)
91 END SUBROUTINE surf_atm_grid_init
92 
93 
94 
95 END MODULE modd_surf_atm_grid_n
subroutine surf_atm_grid_init(YSURF_ATM_GRID)