SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
put_pgd_grid.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 put_pgd_grid(HGRID,KSIZE_FULL,KGRID_PAR,PGRID_PAR)
7 ! ##########################################################
8 !!
9 !! PURPOSE
10 !! -------
11 !! Stores a grid in module MODD_SURF_ATM_GRID_n
12 !!
13 !! METHOD
14 !! ------
15 !!
16 !! EXTERNAL
17 !! --------
18 !!
19 !!
20 !! IMPLICIT ARGUMENTS
21 !! ------------------
22 !!
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !! AUTHOR
28 !! ------
29 !!
30 !! V. Masson Meteo-France
31 !!
32 !! MODIFICATION
33 !! ------------
34 !!
35 !! Original 07/2011
36 !----------------------------------------------------------------------------
37 !
38 !* 0. DECLARATION
39 ! -----------
40 !
41 USE modd_pgd_grid, ONLY : cgrid, ngrid_par, xgrid_par, nl
42 !
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 IMPLICIT NONE
48 !
49 !* 0.1 Declaration of dummy arguments
50 ! ------------------------------
51 !
52  CHARACTER(LEN=10), INTENT(IN) :: hgrid ! type of horizontal grid
53 INTEGER, INTENT(IN) :: ksize_full ! number of points
54 INTEGER, INTENT(IN) :: kgrid_par ! size of PGRID_PAR
55 REAL, DIMENSION(:), POINTER :: pgrid_par ! parameters defining this grid
56 !
57 !
58 !* 0.2 Declaration of local variables
59 ! ------------------------------
60 !
61 REAL(KIND=JPRB) :: zhook_handle
62 !
63 !
64 !------------------------------------------------------------------------------
65 !
66 !* 1. Defaults
67 ! --------
68 !
69 IF (lhook) CALL dr_hook('PUT_PGD_GRID',0,zhook_handle)
70 !
71  cgrid = hgrid
72 nl=ksize_full
73 ngrid_par=kgrid_par
74 ALLOCATE(xgrid_par(ngrid_par))
75 xgrid_par = pgrid_par
76 !
77 IF (lhook) CALL dr_hook('GRID_FROM_FILE',1,zhook_handle)
78 !
79 !-------------------------------------------------------------------------------
80 !
81 END SUBROUTINE put_pgd_grid
subroutine put_pgd_grid(HGRID, KSIZE_FULL, KGRID_PAR, PGRID_PAR)
Definition: put_pgd_grid.F90:6