SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_namelists_topd.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 read_namelists_topd(HPROGRAM)
7 ! #######################################################
8 !
9 !!**** *READ_NAMELISTS_TOPD* reads useful namelists for coupling with TOPD
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !! This routine aims at reading and initialising variables.
15 !!
16 !! METHOD
17 !! ------
18 !!
19 !
20 !! EXTERNAL
21 !! --------
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! REFERENCE
27 !! ---------
28 !!
29 !! AUTHOR
30 !! ------
31 !!
32 !! B. Vincendon Meteo-France
33 !!
34 !! MODIFICATION
35 !! ------------
36 !!
37 !! Original 11/2006
38 !! B. Vincendon 02/2014 : adding possibility to choose the speed of water on hillslopes
39 !! and ti write runoff map on watersheds
40 !----------------------------------------------------------------------------
41 !
42 USE modi_read_nam_pgd_topd
43 USE modi_read_nam_topd
44 !
45 USE modd_topodyn, ONLY : ccat, xtopd_step, nnb_topd_step,&
46  xspeedr, xspeedg, xspeedh,&
47  xqinit, xrtop_d2
48 USE modd_coupling_topd, ONLY : lcoupl_topd, nnb_topd,&
49  lbudget_topd, lstock_topd,&
50  nnb_stp_stock, nnb_stp_restart,&
51  nfreq_maps_wg, nfreq_maps_asat, nfreq_maps_runoff
52 !
53 USE modd_dummy_exp_profile,ONLY:xf_param_bv,xc_depth_ratio_bv
54 !
55 USE yomhook ,ONLY : lhook, dr_hook
56 USE parkind1 ,ONLY : jprb
57 !
58 IMPLICIT NONE
59 !
60  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
61 REAL(KIND=JPRB) :: zhook_handle
62 !
63 !----------------------------------------------------------
64 !
65 IF (lhook) CALL dr_hook('READ_NAMELISTS_TOPD',0,zhook_handle)
66 !
67  CALL read_nam_pgd_topd(hprogram,lcoupl_topd,ccat,&
68  xf_param_bv,xc_depth_ratio_bv)
69 IF (lcoupl_topd) &
70  CALL read_nam_topd(hprogram,lbudget_topd,nnb_topd,&
71  lstock_topd,nnb_stp_stock,nnb_stp_restart,&
72  nfreq_maps_wg, nfreq_maps_asat,nfreq_maps_runoff,&
73  xspeedr,xspeedg,xspeedh,xqinit,xrtop_d2)
74 !
75 IF (lhook) CALL dr_hook('READ_NAMELISTS_TOPD',1,zhook_handle)
76 !
77 END SUBROUTINE read_namelists_topd
subroutine read_nam_topd(HPROGRAM, OBUDGET_TOPD, KNB_TOPD, OSTOCK_TOPD, KNB_STOCK, KNB_RESTART, KFREQ_MAPS_WG, KFREQ_MAPS_ASAT, KFREQ_MAPS_RUNOFF, PSPEEDR, PSPEEDG, PSPEEDH, PQINIT, PRTOP_D2)
subroutine read_nam_pgd_topd(HPROGRAM, OCOUPL_TOPD, HCAT, PF_PARAM_BV, PC_DEPTH_RATIO_BV)
subroutine read_namelists_topd(HPROGRAM)