SURFEX v8.1
General documentation of Surfex
cpl_gcmn.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 cpl_gcm_n (U, KI,PRAIN,PSNOW,PZ0,PZ0H,PQSURF)
7 ! ####################################################
8 !
9 !!**** *CPL_GCM_n* - Save some phisical fields for ARPEGE/ALADIN run
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !!
16 !! EXTERNAL
17 !! --------
18 !!
19 !! IMPLICIT ARGUMENTS
20 !! ------------------
21 !!
22 !! REFERENCE
23 !! ---------
24 !!
25 !!
26 !! AUTHOR
27 !! ------
28 !! B. Decharme *Meteo France*
29 !!
30 !! MODIFICATIONS
31 !! -------------
32 !! Original 04/2013
33 !-------------------------------------------------------------------------------
34 !
35 !* 0. DECLARATIONS
36 ! ------------
37 !
38 !
39 !
40 USE modd_surf_atm_n, ONLY : surf_atm_t
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 IMPLICIT NONE
46 !
47 !* 0.1 Declarations of arguments
48 ! -------------------------
49 !
50 !
51 TYPE(surf_atm_t), INTENT(INOUT) :: U
52 !
53 INTEGER, INTENT(IN) :: KI ! number of points
54 !
55 REAL, DIMENSION(KI), INTENT(IN), OPTIONAL :: PRAIN ! total rainfall rate (kg/m2/s)
56 REAL, DIMENSION(KI), INTENT(IN), OPTIONAL :: PSNOW ! total snowfall rate (kg/m2/s)
57 REAL, DIMENSION(KI), INTENT(IN), OPTIONAL :: PZ0 ! roughness length for momentum (m)
58 REAL, DIMENSION(KI), INTENT(IN), OPTIONAL :: PZ0H ! roughness length for heat (m)
59 REAL, DIMENSION(KI), INTENT(IN), OPTIONAL :: PQSURF ! specific humidity at surface (kg/kg)
60 !
61 !* 0.2 Declarations of local variables
62 ! -------------------------------
63 !
64 REAL(KIND=JPRB) :: ZHOOK_HANDLE
65 !
66 !-------------------------------------------------------------------------------
67 IF (lhook) CALL dr_hook('CPL_GCM_N',0,zhook_handle)
68 !
69 IF(PRESENT(prain )) u%XRAIN (:) = prain(:)
70 IF(PRESENT(psnow )) u%XSNOW (:) = psnow(:)
71 IF(PRESENT(pz0 )) u%XZ0 (:) = pz0(:)
72 IF(PRESENT(pz0h )) u%XZ0H (:) = pz0h(:)
73 IF(PRESENT(pqsurf)) u%XQSURF(:) = pqsurf(:)
74 !
75 IF (lhook) CALL dr_hook('CPL_GCM_N',1,zhook_handle)
76 !-------------------------------------------------------------------------------
77 !
78 END SUBROUTINE cpl_gcm_n
subroutine cpl_gcm_n(U, KI, PRAIN, PSNOW, PZ0, PZ0H, PQSURF)
Definition: cpl_gcmn.F90:7
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15