SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
get_surf_grid_dimn.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 get_surf_grid_dim_n (UG, &
7  hgrid,orect,kdim1,kdim2)
8 ! #######################################################
9 !
10 !!**** *GET_SURF_GRID_DIM_n* get the grid mesh dimensions
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !! METHOD
16 !! ------
17 !!
18 !! REFERENCE
19 !! ---------
20 !!
21 !! AUTHOR
22 !! ------
23 !!
24 !! V. Masson Meteo-France
25 !!
26 !! MODIFICATION
27 !! ------------
28 !!
29 !! Original 03/2004
30 !!
31 !----------------------------------------------------------------------------
32 !
33 !* 0. DECLARATION
34 ! -----------
35 !
36 !
37 !
38 !
40 !
41 USE yomhook ,ONLY : lhook, dr_hook
42 USE parkind1 ,ONLY : jprb
43 !
44 USE modi_get_grid_dim
45 IMPLICIT NONE
46 !
47 !* 0.1 Declaration of arguments
48 ! ------------------------
49 !
50 !
51 TYPE(surf_atm_grid_t), INTENT(INOUT) :: ug
52 !
53  CHARACTER(LEN=10), INTENT(OUT) :: hgrid ! grid type
54 LOGICAL, INTENT(OUT) :: orect ! T if rectangular grid
55 INTEGER, INTENT(OUT) :: kdim1 ! 1st dimension
56 INTEGER, INTENT(OUT) :: kdim2 ! 2nd dimension
57 REAL(KIND=JPRB) :: zhook_handle
58 !
59 !* 0.2 Declaration of other local variables
60 ! ------------------------------------
61 !
62 !----------------------------------------------------------------------------
63 !
64 IF (lhook) CALL dr_hook('GET_SURF_GRID_DIM_N',0,zhook_handle)
65 hgrid = ug%CGRID
66 !
67  CALL get_grid_dim(ug%CGRID,ug%NGRID_PAR,ug%XGRID_PAR,orect,kdim1,kdim2)
68 IF (lhook) CALL dr_hook('GET_SURF_GRID_DIM_N',1,zhook_handle)
69 !
70 !-------------------------------------------------------------------------------
71 !
72 END SUBROUTINE get_surf_grid_dim_n
subroutine get_grid_dim(HGRID, KGRID_PAR, PGRID_PAR, ORECT, KDIM1, KDIM2)
Definition: get_grid_dim.F90:6
subroutine get_surf_grid_dim_n(UG, HGRID, ORECT, KDIM1, KDIM2)