SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
get_interp_halo.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_interp_halo(HPROGRAM,HGRID,KHALO)
7 ! #######################################################
8 !
9 !
10 !!**** *GET_INTERP_HALO* - gets the value of the number of points in the halo
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 07/2011
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 #ifdef SFX_OL
42 USE modi_get_interp_halo_ol
43 #endif
44 #ifdef SFX_MNH
45 USE modi_get_interp_halo_mnh
46 #endif
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 IMPLICIT NONE
52 !
53 !* 0.1 Declarations of arguments
54 ! -------------------------
55 !
56  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling SURFEX
57  CHARACTER(LEN=10), INTENT(IN) :: hgrid ! grid type
58 INTEGER, INTENT(OUT):: khalo
59 !
60 !* 0.2 Declarations of local variables
61 ! -------------------------------
62 !
63 REAL(KIND=JPRB) :: zhook_handle
64 !
65 !-------------------------------------------------------------------------------
66 !
67 IF (lhook) CALL dr_hook('GET_INTERP_HALO',0,zhook_handle)
68 !
69 IF (hprogram=='MESONH') THEN
70 #ifdef SFX_MNH
71  CALL get_interp_halo_mnh(khalo)
72 #endif
73 ELSE
74 #ifdef SFX_OL
75  ! to be coded properly once Offline version is parallelized
76  CALL get_interp_halo_ol(hgrid,khalo)
77 #endif
78 END IF
79 !
80 IF (lhook) CALL dr_hook('GET_INTERP_HALO',1,zhook_handle)
81 !
82 !-------------------------------------------------------------------------------
83 !
84 END SUBROUTINE get_interp_halo
subroutine get_interp_halo_ol(HGRID, KHALO)
subroutine get_interp_halo(HPROGRAM, HGRID, KHALO)