SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
get_latlonmaskn.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_latlonmask_n (UG, &
7  olatlonmask,hgrid,pgrid_par,kgrid_par)
8 ! #######################################################
9 !
10 !!**** *GET_LATLONMASK_n* get the grid dimensions
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !! METHOD
16 !! ------
17 !!
18 !! REFERENCE
19 !! ---------
20 !!
21 !! AUTHOR
22 !! ------
23 !!
24 !! P. Le Moigne Meteo-France
25 !!
26 !! MODIFICATION
27 !! ------------
28 !!
29 !! Original 03/2007
30 !!
31 !----------------------------------------------------------------------------
32 !
33 !* 0. DECLARATION
34 ! -----------
35 !
36 !
37 !
39 !
40 USE modi_latlonmask
41 !
42 !
43 USE yomhook ,ONLY : lhook, dr_hook
44 USE parkind1 ,ONLY : jprb
45 !
46 IMPLICIT NONE
47 !
48 !* 0.1 Declaration of arguments
49 ! ------------------------
50 !
51 TYPE(surf_atm_grid_t), INTENT(INOUT) :: ug
52 !
53  CHARACTER(LEN=10), INTENT(OUT) :: hgrid
54 REAL, DIMENSION(:), POINTER :: pgrid_par
55 INTEGER, INTENT(OUT) :: kgrid_par
56 LOGICAL, DIMENSION(:,:), INTENT(OUT) :: olatlonmask
57 REAL(KIND=JPRB) :: zhook_handle
58 !
59 !
60 !* 0.2 Declaration of other local variables
61 ! ------------------------------------
62 !
63 !----------------------------------------------------------------------------
64 !
65 !
66 IF (lhook) CALL dr_hook('GET_LATLONMASK_N',0,zhook_handle)
67 ug%NGRID_PAR=SIZE(ug%XGRID_PAR)
68 
69  CALL latlonmask(ug%CGRID,ug%NGRID_PAR,ug%XGRID_PAR,olatlonmask)
70 !
71 hgrid=ug%CGRID
72 !
73 kgrid_par=ug%NGRID_PAR
74 !
75 ALLOCATE(pgrid_par(kgrid_par))
76 !
77 pgrid_par(:)=ug%XGRID_PAR(:)
78 IF (lhook) CALL dr_hook('GET_LATLONMASK_N',1,zhook_handle)
79 !
80 !-------------------------------------------------------------------------------
81 !
82 END SUBROUTINE get_latlonmask_n
subroutine latlonmask(HGRID, KGRID_PAR, PGRID_PAR, OLATLONMASK)
Definition: latlonmask.F90:6
subroutine get_latlonmask_n(UG, OLATLONMASK, HGRID, PGRID_PAR, KGRID_PAR)