SURFEX v8.1
General documentation of Surfex
diag_cpl_esm_flake.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_cpl_esm_flake (F,PTSTEP,PRAIN,PSNOW,PSFTQ)
7 ! #####################################################################
8 !
9 !!**** *DIAG_CPL_ESM_FLAKE * - Computes diagnostics over sea for
10 !! Earth system model coupling
11 !!
12 !! PURPOSE
13 !! -------
14 !
15 !!** METHOD
16 !! ------
17 !!
18 !! REFERENCE
19 !! ---------
20 !!
21 !!
22 !! AUTHOR
23 !! ------
24 !! B. Decharme
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !! Original 08/2009
29 !!------------------------------------------------------------------
30 !
31 !
32 !
33 USE modd_flake_n, ONLY : flake_t
34 !
35 USE yomhook ,ONLY : lhook, dr_hook
36 USE parkind1 ,ONLY : jprb
37 !
38 IMPLICIT NONE
39 !
40 !* 0.1 declarations of arguments
41 !
42 !
43 TYPE(flake_t), INTENT(INOUT) :: F
44 !
45 REAL, INTENT(IN) :: PTSTEP ! atmospheric time-step
46 REAL, DIMENSION(:), INTENT(IN) :: PRAIN ! Rainfall
47 REAL, DIMENSION(:), INTENT(IN) :: PSNOW ! Snowfall
48 REAL, DIMENSION(:), INTENT(IN) :: PSFTQ ! water flux
49 !
50 !* 0.2 declarations of local variables
51 !
52 REAL(KIND=JPRB) :: ZHOOK_HANDLE
53 !
54 IF (lhook) CALL dr_hook('DIAG_CPL_ESM_FLAKE',0,zhook_handle)
55 !
56 !-------------------------------------------------------------------------------------
57 ! Total flux
58 !-------------------------------------------------------------------------------------
59 !
60 !* Evaporation (kg/m2)
61 !
62 f%XCPL_FLAKE_EVAP(:) = f%XCPL_FLAKE_EVAP(:) + ptstep * psftq(:)
63 !
64 !* Precip (kg/m2)
65 !
66 f%XCPL_FLAKE_RAIN(:) = f%XCPL_FLAKE_RAIN(:) + ptstep * prain(:)
67 f%XCPL_FLAKE_SNOW(:) = f%XCPL_FLAKE_SNOW(:) + ptstep * psnow(:)
68 !
69 IF (lhook) CALL dr_hook('DIAG_CPL_ESM_FLAKE',1,zhook_handle)
70 !
71 !-------------------------------------------------------------------------------------
72 !
73 END SUBROUTINE diag_cpl_esm_flake
subroutine diag_cpl_esm_flake(F, PTSTEP, PRAIN, PSNOW, PSFTQ)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15