SURFEX v8.1
General documentation of Surfex
diag_inline_surf_atmn.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 diag_inline_surf_atm_n (DGO, D, PHW, PHT, PPS, PRHOA, PTRAD, PEMIS, PSFU, PSFV, PSFCO2)
7 ! ###############################################################################!
8 !!**** *DIAG_INLINE_SURF_ATM_n * - Computes diagnostics during SURF_ATM time-step
9 !!
10 !! PURPOSE
11 !! -------
12 !
13 !!** METHOD
14 !! ------
15 !!
16 !! REFERENCE
17 !! ---------
18 !!
19 !!
20 !! AUTHOR
21 !! ------
22 !! P. LeMoigne
23 !!
24 !! MODIFICATIONS
25 !! -------------
26 !! Original 02/2006
27 !!------------------------------------------------------------------
28 !
29 
30 !
31 !
32 !
33 !
35 !
36 USE yomhook ,ONLY : lhook, dr_hook
37 USE parkind1 ,ONLY : jprb
38 !
39 IMPLICIT NONE
40 !
41 !* 0.1 declarations of arguments
42 !
43 !
44 TYPE(diag_options_t), INTENT(INOUT) :: DGO
45 TYPE(diag_t), INTENT(INOUT) :: D
46 !
47 REAL, DIMENSION(:), INTENT(IN) :: PHW ! atmospheric level height for wind
48 REAL, DIMENSION(:), INTENT(IN) :: PHT ! atmospheric level height
49 REAL, DIMENSION(:), INTENT(IN) :: PPS ! surface pressure
50 REAL, DIMENSION(:), INTENT(IN) :: PRHOA ! air density
51 REAL, DIMENSION(:), INTENT(IN) :: PTRAD ! radiative temperature at t (K)
52 REAL, DIMENSION(:), INTENT(IN) :: PEMIS ! emissivity at t (-)
53 REAL, DIMENSION(:), INTENT(IN) :: PSFU ! zonal momentum flux (Pa)
54 REAL, DIMENSION(:), INTENT(IN) :: PSFV ! meridian momentum flux (Pa)
55 REAL, DIMENSION(:), INTENT(IN) :: PSFCO2 ! CO2 flux (kg/m2/s)
56 REAL(KIND=JPRB) :: ZHOOK_HANDLE
57 !
58 !* 0.2 declarations of local variables
59 !
60 !-------------------------------------------------------------------------------------
61 !
62 IF (lhook) CALL dr_hook('DIAG_INLINE_SURF_ATM_N',0,zhook_handle)
63 IF (dgo%LCOEF) THEN
64  d%XUREF = phw
65  d%XZREF = pht
66 END IF
67 !
68 d%XRHOA = prhoa
69 d%XPS = pps
70 d%XTRAD = ptrad
71 d%XEMIS = pemis
72 !
73 d%XSSO_FMU = psfu
74 d%XSSO_FMV = psfv
75 !
76 d%XSFCO2 = psfco2
77 !
78 IF (lhook) CALL dr_hook('DIAG_INLINE_SURF_ATM_N',1,zhook_handle)
79 !-------------------------------------------------------------------------------------
80 !
81 END SUBROUTINE diag_inline_surf_atm_n
subroutine diag_inline_surf_atm_n(DGO, D, PHW, PHT, PPS, PRHOA, PTRAD, PEMIS, PSFU, PSFV, PSFCO2)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15