SURFEX v8.1
General documentation of Surfex
get_qsn.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 get_qs_n (DGO, D, HPROGRAM,KI,PQS)
7 ! #########################################
8 !
9 !!**** *GET_QS_n* - routine to get roughness lengths
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 !! P. Le Moigne *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 02/2006
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
42 !
43 USE modi_get_luout
44 USE modd_surf_par, ONLY : xundef
45 !
46 !
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 IMPLICIT NONE
52 !
53 !* 0.1 Declarations of arguments
54 ! -------------------------
55 !
56 !
57 TYPE(diag_options_t), INTENT(IN) :: DGO
58 TYPE(diag_t), INTENT(INOUT) :: D
59 !
60  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM
61 INTEGER, INTENT(IN) :: KI ! Number of points
62 REAL, DIMENSION(KI), INTENT(OUT) :: PQS ! roughness length for momentum (m)
63 !
64 !
65 !* 0.2 Declarations of local variables
66 ! -------------------------------
67 !
68 INTEGER :: ILUOUT
69 REAL(KIND=JPRB) :: ZHOOK_HANDLE
70 !
71 !-------------------------------------------------------------------------------
72 IF (lhook) CALL dr_hook('GET_QS_N',0,zhook_handle)
73  CALL get_luout(hprogram,iluout)
74 !-------------------------------------------------------------------------------
75 !
76 IF (dgo%LSURF_VARS) THEN
77  pqs = d%XQS
78 ELSE
79  pqs = xundef
80 ENDIF
81 IF (lhook) CALL dr_hook('GET_QS_N',1,zhook_handle)
82 !
83 !==============================================================================
84 !
85 END SUBROUTINE get_qs_n
subroutine get_qs_n(DGO, D, HPROGRAM, KI, PQS)
Definition: get_qsn.F90:7
real, parameter xundef
integer, parameter jprb
Definition: parkind1.F90:32
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15