SURFEX v8.1
General documentation of Surfex
get_var_sean.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_var_sea_n (DGO, D, HPROGRAM,KI,PQS,PZ0,PZ0H)
7 ! ##################################################
8 !
9 !!**** *GET_VAR_SEA_n* - routine to get variables defined only over sea
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 ! M. Jidane 08/2008 Z0 and Z0H recovery from sea tiles
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
43 !
44 USE modi_get_luout
45 USE modd_surf_par, ONLY : xundef
46 !
47 !
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57 !
58 TYPE(diag_options_t), INTENT(IN) :: DGO
59 TYPE(diag_t), INTENT(INOUT) :: D
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM
62 INTEGER, INTENT(IN) :: KI ! Number of points
63 REAL, DIMENSION(KI), INTENT(OUT) :: PQS ! surface humidity
64 REAL, DIMENSION(KI), INTENT(OUT) :: PZ0 ! surface roughness length
65 REAL, DIMENSION(KI), INTENT(OUT) :: PZ0H ! surface roughness length for heat
66 !
67 !
68 !* 0.2 Declarations of local variables
69 ! -------------------------------
70 !
71 INTEGER :: ILUOUT
72 REAL(KIND=JPRB) :: ZHOOK_HANDLE
73 !
74 !-------------------------------------------------------------------------------
75 IF (lhook) CALL dr_hook('GET_VAR_SEA_N',0,zhook_handle)
76  CALL get_luout(hprogram,iluout)
77 !-------------------------------------------------------------------------------
78 !
79 IF (dgo%LSURF_VARS) THEN
80  pqs = d%XQS
81  ELSE
82  pqs = xundef
83 ENDIF
84 IF (dgo%LCOEF) THEN
85  pz0 = d%XZ0
86  pz0h = d%XZ0H
87  ELSE
88  pz0 = xundef
89  pz0h = xundef
90 ENDIF
91 IF (lhook) CALL dr_hook('GET_VAR_SEA_N',1,zhook_handle)
92 !
93 !==============================================================================
94 !
95 END SUBROUTINE get_var_sea_n
real, parameter xundef
integer, parameter jprb
Definition: parkind1.F90:32
subroutine get_var_sea_n(DGO, D, HPROGRAM, KI, PQS, PZ0, PZ0H)
Definition: get_var_sean.F90:7
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15