SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_nam_prep_isban.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_nam_prep_isba_n(HPROGRAM)
7 ! #######################################################
8 !
9 !---------------------------------------
10 !
14 !
15 USE modd_surf_par, ONLY : xundef, nundef
16 !
17 USE modi_default_prep_isba
18 USE modi_read_prep_isba_snow
19 USE modi_read_prep_isba_carbon
20 !
22 USE modi_get_luout
23 USE modi_open_namelist
24 USE modi_close_namelist
25 USE mode_pos_surf
26 !
27 !
28 USE yomhook ,ONLY : lhook, dr_hook
29 USE parkind1 ,ONLY : jprb
30 !
31 IMPLICIT NONE
32 !
33  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
34 !
35 INTEGER :: ilunam ! logical unit of namelist file
36 INTEGER :: iluout
37 LOGICAL :: gfound ! Return code when searching namelist
38 REAL(KIND=JPRB) :: zhook_handle
39 !
40 !---------------------------------------
41 !
42 IF (lhook) CALL dr_hook('READ_NAM_PREP_ISBA_N',0,zhook_handle)
43 nyear=nundef
44 nmonth=nundef
45 nday=nundef
46 xtime=xundef
47 !
48  CALL get_luout(hprogram,iluout)
49 !
50 !
52 !
53  CALL open_namelist(hprogram,ilunam)
54  CALL posnam(ilunam,'NAM_PREP_ISBA',gfound,iluout)
55 IF (gfound) READ(unit=ilunam,nml=nam_prep_isba)
56  CALL close_namelist(hprogram,ilunam)
57 !
58  CALL test_nam_var_surf(iluout,'CTYPE', ctype, ' ', 'GRIB ','MESONH','ASCII ','LFI ','FA ')
59  CALL test_nam_var_surf(iluout,'CTYPEPGD', ctypepgd, ' ','GRIB ','MESONH','ASCII ','LFI ','FA ')
60  CALL test_nam_var_surf(iluout,'CTYPE_HUG',ctype_hug,' ','GRIB ','MESONH','ASCII ','ASCLLV','LFI ','NETCDF')
61  CALL test_nam_var_surf(iluout,'CTYPE_TG', ctype_tg,' ', 'GRIB ','MESONH','ASCII ','ASCLLV','LFI ','NETCDF')
62 !
63  CALL read_prep_isba_snow(hprogram,csnow,nsnow_layer)
64 !
65  CALL read_prep_isba_carbon(hprogram,crespsl)
66 IF (lhook) CALL dr_hook('READ_NAM_PREP_ISBA_N',1,zhook_handle)
67 !
68 !------------------------------------
69 !
70 END SUBROUTINE read_nam_prep_isba_n
subroutine read_prep_isba_carbon(HPROGRAM, HRESPSL)
subroutine read_nam_prep_isba_n(HPROGRAM)
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine default_prep_isba
subroutine read_prep_isba_snow(HPROGRAM, HSNOW, KSNOW_LAYER, HFILE, HFILETYPE, HFILEPGD, HFILEPGDTYPE, OUNIF)
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)