SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
mode_split_grid_parameter_ol.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  CONTAINS
10 !
11 ! #############################################################
12  SUBROUTINE split_grid_parameterx1_ol(HPROGRAM,HGRID,HREC,KDIM,KSIZE,&
13  pfield,pfield_split )
14 ! #############################################################
15 !
16 !!**** * - routine to split a real array on the splitted grid
17 !
18 USE yomhook ,ONLY : lhook, dr_hook
19 USE parkind1 ,ONLY : jprb
20 !
21 USE modi_abor1_sfx
22 !
23 !
24 IMPLICIT NONE
25 !
26 !* 0.1 Declarations of arguments
27 !
28  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! calling program
29  CHARACTER(LEN=10), INTENT(IN) :: hgrid ! grid type
30  CHARACTER(LEN=6), INTENT(IN) :: hrec ! name of the parameter
31 INTEGER, INTENT(IN) :: kdim ! size of PFIELD
32 INTEGER, INTENT(IN) :: ksize ! size of PFIELD_SPLIT
33 REAL, DIMENSION(KDIM ), INTENT(IN) :: pfield ! real field for complete grid
34 REAL, DIMENSION(KSIZE), INTENT(OUT):: pfield_split! real field for splitted grid
35 !
36 !* 0.2 Declarations of local variables
37 !
38 REAL(KIND=JPRB) :: zhook_handle
39 !
40 !-------------------------------------------------------------------------------
41 IF (lhook) CALL dr_hook('MODE_SPLIT_GRID_PARAMETER_OL:SPLIT_GRID_PARAMETERX1_OL',0,zhook_handle)
42 !
43 IF (kdim==ksize) THEN
44  pfield_split = pfield
45 ELSE
46  CALL abor1_sfx('ERROR in SPLIT_GRID_OL for grid, '//hgrid//', case need to be coded')
47 END IF
48 !
49 !
50 IF (lhook) CALL dr_hook('MODE_SPLIT_GRID_PARAMETER_OL:SPLIT_GRID_PARAMETERX1_OL',1,zhook_handle)
51 !
52 !-------------------------------------------------------------------------------
53 END SUBROUTINE split_grid_parameterx1_ol
54 !
55 !
56 ! #############################################################
57  SUBROUTINE split_grid_parametern0_ol(HPROGRAM,HGRID,HREC,KFIELD,KFIELD_SPLIT)
58 ! #############################################################
59 !
60 !!**** * - routine to define an integer related to splitted grid
61 !
62 USE yomhook ,ONLY : lhook, dr_hook
63 USE parkind1 ,ONLY : jprb
64 !
65 !
66 IMPLICIT NONE
67 !
68 !* 0.1 Declarations of arguments
69 !
70  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! calling program
71  CHARACTER(LEN=10), INTENT(IN) :: hgrid ! grid type
72  CHARACTER(LEN=6), INTENT(IN) :: hrec ! name of the parameter
73 INTEGER, INTENT(IN) :: kfield ! integer scalar for complete grid
74 INTEGER, INTENT(OUT):: kfield_split ! integer scalar for splitted grid
75 !* 0.2 Declarations of local variables
76 !
77 REAL(KIND=JPRB) :: zhook_handle
78 !
79 !-------------------------------------------------------------------------------
80 IF (lhook) CALL dr_hook('MODE_SPLIT_GRID_PARAMETER_OL:SPLIT_GRID_PARAMETERN0_OL',0,zhook_handle)
81 !
82 !-------------------------------------------------------------------------------
83 !* define the integer value for the splitted grid
84 !
85 kfield_split = kfield
86 !
87 IF (lhook) CALL dr_hook('MODE_SPLIT_GRID_PARAMETER_OL:SPLIT_GRID_PARAMETERN0_OL',1,zhook_handle)
88 !
89 !-------------------------------------------------------------------------------
90 END SUBROUTINE split_grid_parametern0_ol
91 !
subroutine split_grid_parametern0_ol(HPROGRAM, HGRID, HREC, KFIELD, KFIELD_SPLIT)
subroutine abor1_sfx(YTEXT)
Definition: abor1_sfx.F90:6
subroutine split_grid_parameterx1_ol(HPROGRAM, HGRID, HREC, KDIM, KSIZE, PFIELD, PFIELD_SPLIT)