SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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 !
52 USE modd_coupling_topd, ONLY : nnb_stp_restart,lcoupl_topd
53 USE modd_topodyn, ONLY : ccat, nncat, nnb_topd_step, xtopd_step,&
54  xdxt, nnxc, nnyc,&
55  xnul, xx0, xy0, nnpt,&
56  nx_step_rout, xspeedr,&
57  xspeedh, nnmc, nmesht, npmax,&
58  nline, xdmaxt,&
59  xtopd, xdriv, xdhil, xtime_topd,&
60  xdgrd, xspeedg, xtime_topd_drain,&
61  xqtot, xtanb, xslop, xdarea,&
62  xlambda, xconn, xqb_dr, xqb_run
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
subroutine init_topd(HPROGRAM)
Definition: init_topd.F90:7
subroutine init_topd_pgd(HPROGRAM)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6