SURFEX v8.1
General documentation of Surfex
modn_sson.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 MODULE modn_sso_n
7 !##################
8 !
9 !!**** *MODN_SSO_n* - declaration of namelist NAM_SSO_n
10 !!
11 !! PURPOSE
12 !! -------
13 ! The purpose of this module is to specify the namelist NAM_SSO_n
14 ! which concern the roughness parameterization for orography.
15 !
16 !!
17 !!** IMPLICIT ARGUMENTS
18 !! ------------------
19 !!
20 !! REFERENCE
21 !! ---------
22 !!
23 !!
24 !! AUTHOR
25 !! ------
26 !! V. Masson *Meteo France*
27 !!
28 !! MODIFICATIONS
29 !! -------------
30 !! Original 05/2010
31 !!
32 !-------------------------------------------------------------------------------
33 !
34 !* 0. DECLARATIONS
35 ! ------------
36 !
37 !
38 USE yomhook ,ONLY : lhook, dr_hook
39 USE parkind1 ,ONLY : jprb
40 !
41 IMPLICIT NONE
42 !
43  CHARACTER(LEN=4) :: crough
44 REAL :: xfracz0
45 REAL :: xcoefbe
46 !
47 NAMELIST/nam_sson/crough, xfracz0, xcoefbe
48 !
49 CONTAINS
50 !
51 SUBROUTINE init_nam_sson (USS)
52 !
53  USE modd_sso_n, ONLY : sso_t
54 !
55  IMPLICIT NONE
56 !
57  TYPE(sso_t), INTENT(INOUT) :: USS
58  REAL(KIND=JPRB) :: ZHOOK_HANDLE
59 
60  IF (lhook) CALL dr_hook('MODN_SSO_N:INIT_NAM_SSON',0,zhook_handle)
61  crough = uss%CROUGH
62  xfracz0= uss%XFRACZ0
63  xcoefbe= uss%XCOEFBE
64  IF (lhook) CALL dr_hook('MODN_SSO_N:INIT_NAM_SSON',1,zhook_handle)
65 END SUBROUTINE init_nam_sson
66 
67 SUBROUTINE update_nam_sson (USS)
68 !
69  USE modd_sso_n, ONLY : sso_t
70 !
71  IMPLICIT NONE
72 !
73  TYPE(sso_t), INTENT(INOUT) :: USS
74  REAL(KIND=JPRB) :: ZHOOK_HANDLE
75 
76  IF (lhook) CALL dr_hook('MODN_SSO_N:UPDATE_NAM_SSON',0,zhook_handle)
77  uss%CROUGH = crough
78  uss%XFRACZ0= xfracz0
79  uss%XCOEFBE= xcoefbe
80  IF (lhook) CALL dr_hook('MODN_SSO_N:UPDATE_NAM_SSON',1,zhook_handle)
81 END SUBROUTINE update_nam_sson
82 
83 END MODULE modn_sso_n
subroutine init_nam_sson(USS)
Definition: modn_sson.F90:52
character(len=4) crough
Definition: modn_sson.F90:43
real xcoefbe
Definition: modn_sson.F90:45
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine update_nam_sson(USS)
Definition: modn_sson.F90:68
real xfracz0
Definition: modn_sson.F90:44