SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_isba_conf.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_isba_conf(HPROGRAM)
7 ! #######################################################
8 !
9 !!**** *READ_ISBA_CONF* - routine to read the configuration for ISBA
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 01/2003
35 !! P Le Moigne 09/2005 AGS modifs of L. Jarlan
36 !! P Le Moigne 09/2005 CSNOWRES option
37 !! Modified by P. Le Moigne (06/2006): seeding and irrigation
38 !! Modified by P. Le Moigne (05/2008): deep soil characteristics
39 !! Modified by P. Aumond (07/2011): tree drag replaced by grass
40 !! Modified by T. Aspelien (04/2012): Separated assimilation
41 !-------------------------------------------------------------------------------
42 !
43 !* 0. DECLARATIONS
44 ! ------------
45 !
46 USE mode_pos_surf
47 !
48 USE modi_get_luout
49 USE modi_open_namelist
50 USE modi_close_namelist
51 !
52 USE modn_agri
53 USE modn_deepsoil
54 USE modn_treedrag
55 !
56 USE modd_surf_par, ONLY : xundef
57 !
58 USE yomhook ,ONLY : lhook, dr_hook
59 USE parkind1 ,ONLY : jprb
60 !
61 IMPLICIT NONE
62 !
63 !* 0.1 Declarations of arguments
64 ! -------------------------
65 !
66  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling ISBA
67 
68 !
69 !* 0.2 Declarations of local variables
70 ! -------------------------------
71 !
72 !
73 LOGICAL :: gfound ! Return code when searching namelist
74 INTEGER :: iluout ! logical unit of output file
75 INTEGER :: inam ! logical unit of namelist file
76 REAL(KIND=JPRB) :: zhook_handle
77 !-------------------------------------------------------------------------------
78 !
79 !* get output listing file logical unit
80 !
81 IF (lhook) CALL dr_hook('READ_ISBA_CONF',0,zhook_handle)
82  CALL get_luout(hprogram,iluout)
83 !
84 !* open namelist file
85 !
86  CALL open_namelist(hprogram,inam)
87 !
88 !* reading of namelist
89 ! -------------------
90 !
91  CALL posnam(inam,'NAM_AGRI',gfound,iluout)
92 IF (gfound) READ(unit=inam,nml=nam_agri)
93  CALL posnam(inam,'NAM_DEEPSOIL',gfound,iluout)
94 IF (gfound) READ(unit=inam,nml=nam_deepsoil)
95  CALL posnam(inam,'NAM_TREEDRAG',gfound,iluout)
96 IF (gfound) READ(unit=inam,nml=nam_treedrag)
97 !
98 !* close namelist file
99 !
100  CALL close_namelist(hprogram,inam)
101 IF (lhook) CALL dr_hook('READ_ISBA_CONF',1,zhook_handle)
102 !
103 !
104 !-------------------------------------------------------------------------------
105 !
106 !* surface time-step forced by the atmosphere
107 !
108 !XTSTEP = XUNDEF
109 !
110 !-------------------------------------------------------------------------------
111 !
112 END SUBROUTINE read_isba_conf
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine read_isba_conf(HPROGRAM)
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)