SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
read_nam_prep_seafluxn.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_seaflux_n(HPROGRAM)
7 ! #######################################################
8 !
9 !---------------------------------------
10 !
11 USE modd_surf_par, ONLY : xundef, nundef
13 
14 USE modi_default_prep_seaflux
15 !
17 USE modi_get_luout
18 USE modi_open_namelist
19 USE modi_close_namelist
20 USE mode_pos_surf
21 !
22 !
23 USE yomhook ,ONLY : lhook, dr_hook
24 USE parkind1 ,ONLY : jprb
25 !
26 IMPLICIT NONE
27 !
28  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
29 !
30 INTEGER :: ilunam ! logical unit of namelist file
31 INTEGER :: iluout
32 LOGICAL :: gfound ! Return code when searching namelist
33 REAL(KIND=JPRB) :: zhook_handle
34 !
35 !---------------------------------------
36 !
37 IF (lhook) CALL dr_hook('READ_NAM_PREP_SEAFLUX_N',0,zhook_handle)
38 nyear=nundef
39 nmonth=nundef
40 nday=nundef
41 xtime=xundef
42 !
43  CALL get_luout(hprogram,iluout)
44 !
46 !
47  CALL open_namelist(hprogram,ilunam)
48  CALL posnam(ilunam,'NAM_PREP_SEAFLUX',gfound,iluout)
49 IF (gfound) READ(unit=ilunam,nml=nam_prep_seaflux)
50  CALL close_namelist(hprogram,ilunam)
51 !
52  CALL test_nam_var_surf(iluout,'CTYPE_SEAFLX', ctype_seaflx, ' ','GRIB ','MESONH',&
53  'ASCII ','NETCDF','LFI ','FA ')
54  CALL test_nam_var_surf(iluout,'CTYPEPGD', ctypepgd, ' ','GRIB ','MESONH','ASCII ','LFI ','FA ')
55  CALL test_nam_var_surf(iluout,'CSEAICE_SCHEME',cseaice_scheme,'GELATO','NONE ')
56 !
57 IF (lhook) CALL dr_hook('READ_NAM_PREP_SEAFLUX_N',1,zhook_handle)
58 !------------------------------------
59 !
60 END SUBROUTINE read_nam_prep_seaflux_n
subroutine default_prep_seaflux
subroutine read_nam_prep_seaflux_n(HPROGRAM)
subroutine close_namelist(HPROGRAM, KLUNAM)
subroutine posnam(KULNAM, HDNAML, OFOUND, KLUOUT)
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6
subroutine open_namelist(HPROGRAM, KLUNAM, HFILE)