SURFEX v8.1
General documentation of Surfex
init_topd_pgd.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 ! #######################
7  SUBROUTINE init_topd_pgd(HPROGRAM)
8 ! #######################
9 !
10 !!**** *INIT_TOPD_PGD*
11 !!
12 !! PURPOSE
13 !! -------
14 ! This routine aims at initialising the variables
15 ! needed of running Topmodel for PGD step.
16 !
17 !
18 !!** METHOD
19 !! ------
20 !
21 !! EXTERNAL
22 !! --------
23 !!
24 !! none
25 !!
26 !! IMPLICIT ARGUMENTS
27 !! ------------------
28 !!
29 !!
30 !!
31 !!
32 !!
33 !! REFERENCE
34 !! ---------
35 !!
36 !!
37 !!
38 !! AUTHOR
39 !! ------
40 !!
41 !! B. Vincendon * Meteo-France *
42 !!
43 !! MODIFICATIONS
44 !! -------------
45 !!
46 !! Original 03/2014
47 !-------------------------------------------------------------------------------
48 !
49 !* 0. DECLARATIONS
50 ! ------------
51 !
54  xdxt, nnxc, nnyc,&
55  xnul, xx0, xy0, nnpt,&
58  nline, xdmaxt,&
61  xqtot, xtanb, xslop, xdarea,&
63 !
64 USE modd_topd_par, ONLY : ndim
65 USE modd_surf_par, ONLY : xundef, nundef
66 !
67 USE modi_get_luout
68 USE modi_init_topd
69 !
70 USE yomhook ,ONLY : lhook, dr_hook
71 USE parkind1 ,ONLY : jprb
72 !
73 IMPLICIT NONE
74 !
75 !* 0.1 declarations of arguments
76 !
77  CHARACTER(LEN=*), INTENT(IN) :: HPROGRAM !
78 !
79 !* 0.2 declarations of local variables
80 !
81 !
82 INTEGER :: JJ,JCAT ! loop control
83 INTEGER :: ILUOUT ! Unit of the files
84 !
85 REAL, DIMENSION(:),ALLOCATABLE :: ZTOPD_READ !Topgraphic variable read
86 !
87 REAL(KIND=JPRB) :: ZHOOK_HANDLE
88 !-------------------------------------------------------------------------------
89 IF (lhook) CALL dr_hook('INIT_TOPD_PGD',0,zhook_handle)
90 !
91 !* 1 Initialization:
92 ! ---------------
93 !
94  CALL get_luout(hprogram,iluout)
95 !
96 WRITE(iluout,*) 'INITIALISATION INIT_TOPD_PGD'
97 !
98 CALL INIT_TOPD('ASCII ')
99 !
100 IF (lhook) CALL dr_hook('INIT_TOPD_PGD',1,zhook_handle)
101 !
102 END SUBROUTINE init_topd_pgd
real, dimension(:,:), allocatable xlambda
real, dimension(jpcat) xspeedh
real, dimension(:,:), allocatable xdriv
real, dimension(:,:), allocatable xtopd
real, dimension(jpcat) xspeedr
real, dimension(:), allocatable xx0
character(len=15), dimension(jpcat) ccat
real, dimension(:,:), allocatable xslop
real, dimension(:,:), allocatable xqb_dr
real, dimension(:,:), allocatable xqb_run
real, dimension(:,:), allocatable xdmaxt
real, dimension(:,:), allocatable xdarea
integer nnb_topd_step
real, dimension(:,:), allocatable xtanb
integer, dimension(:,:), allocatable nline
real, parameter xundef
integer nmesht
integer, parameter jprb
Definition: parkind1.F90:32
real, dimension(:), allocatable xdxt
subroutine init_topd_pgd(HPROGRAM)
integer, parameter nundef
integer, dimension(:), allocatable nx_step_rout
real, dimension(:,:), allocatable xdhil
integer, dimension(:), allocatable nnyc
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
real, dimension(:), allocatable xnul
logical lhook
Definition: yomhook.F90:15
integer, dimension(:), allocatable nnxc
real, dimension(:), allocatable xy0
integer, dimension(:), allocatable nnpt
real, dimension(:,:), allocatable xtime_topd_drain
real, dimension(jpcat) xspeedg
real, dimension(:,:), allocatable xtime_topd
real, dimension(:,:,:), allocatable xconn
real, dimension(:,:), allocatable xdgrd
integer, parameter ndim
integer, dimension(:), allocatable nnmc
real, dimension(:,:), allocatable xqtot