SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
get_near_meshes_gauss.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_near_meshes_gauss(KGRID_PAR,KL,PGRID_PAR,KNEAR_NBR,KNEAR)
7 ! ##############################################################
8 !
9 !!**** *GET_NEAR_MESHES_GAUSS* get the near grid mesh indices
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !! METHOD
15 !! ------
16 !!
17 !! REFERENCE
18 !! ---------
19 !!
20 !! AUTHOR
21 !! ------
22 !!
23 !! V. Masson Meteo-France
24 !!
25 !! MODIFICATION
26 !! ------------
27 !!
28 !! Original 03/2004
29 !!
30 !----------------------------------------------------------------------------
31 !
32 !* 0. DECLARATION
33 ! -----------
34 !
35 !
36 !
37 USE yomhook ,ONLY : lhook, dr_hook
38 USE parkind1 ,ONLY : jprb
39 !
40 IMPLICIT NONE
41 !
42 !* 0.1 Declaration of arguments
43 ! ------------------------
44 !
45 INTEGER, INTENT(IN) :: kgrid_par ! size of PGRID_PAR
46 INTEGER, INTENT(IN) :: kl ! number of points
47 INTEGER, INTENT(IN) :: knear_nbr ! number of nearest points wanted
48 REAL, DIMENSION(KGRID_PAR), INTENT(IN) :: pgrid_par ! grid parameters
49 INTEGER, DIMENSION(:,:),POINTER :: knear ! near mesh indices
50 REAL(KIND=JPRB) :: zhook_handle
51 !
52 !* 0.2 Declaration of other local variables
53 ! ------------------------------------
54 !
55 !----------------------------------------------------------------------------
56 !
57 IF (lhook) CALL dr_hook('GET_NEAR_MESHES_GAUSS',0,zhook_handle)
58 knear(:,:) = 0
59 IF (lhook) CALL dr_hook('GET_NEAR_MESHES_GAUSS',1,zhook_handle)
60 !
61 !-------------------------------------------------------------------------------
62 !
63 END SUBROUTINE get_near_meshes_gauss
subroutine get_near_meshes_gauss(KGRID_PAR, KL, PGRID_PAR, KNEAR_NBR, KNEAR)