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