SURFEX v8.1
General documentation of Surfex
put_zs_naturen.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 put_zs_nature_n (S, HPROGRAM,KI,PZS)
7 ! ###########################################
8 !
9 !!**** *PUT_ZS_SURF_ATM_n* - routine to modify nature oropgraphy using atmospheric
10 ! model orography
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! P. Le Moigne *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 05/2007
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
42 USE modd_isba_n, ONLY : isba_s_t
43 !
44 USE modi_get_luout
45 !
46 !
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 USE modi_abor1_sfx
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 Declarations of arguments
56 ! -------------------------
57 !
58 !
59 TYPE(isba_s_t), INTENT(INOUT) :: S
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM
62 INTEGER, INTENT(IN) :: KI ! horizontal dim. of cover
63 REAL, DIMENSION(KI), INTENT(IN) :: PZS ! orography
64 !
65 !
66 !* 0.2 Declarations of local variables
67 ! -------------------------------
68 !
69 INTEGER :: ILUOUT
70 REAL(KIND=JPRB) :: ZHOOK_HANDLE
71 !
72 !-------------------------------------------------------------------------------
73 IF (lhook) CALL dr_hook('PUT_ZS_NATURE_N',0,zhook_handle)
74  CALL get_luout(hprogram,iluout)
75 !-------------------------------------------------------------------------------
76 !
77 IF ( SIZE(pzs) /= SIZE(s%XZS) ) THEN
78  WRITE(iluout,*) 'try to get ZS field from atmospheric model, but size is not correct'
79  WRITE(iluout,*) 'size of field expected by the atmospheric model (PZS) :', SIZE(pzs)
80  WRITE(iluout,*) 'size of field over nature (XZS) :', SIZE(s%XZS)
81  CALL abor1_sfx('PUT_ZS_NATUREN: GET ZS FROM ATMOSPHERIC MODEL: SIZE NOT CORRECT')
82 ELSE
83  s%XZS = pzs
84 END IF
85 IF (lhook) CALL dr_hook('PUT_ZS_NATURE_N',1,zhook_handle)
86 !
87 !==============================================================================
88 !
89 END SUBROUTINE put_zs_nature_n
subroutine put_zs_nature_n(S, HPROGRAM, KI, PZS)
subroutine abor1_sfx(YTEXT)
Definition: abor1_sfx.F90:7
integer, parameter jprb
Definition: parkind1.F90:32
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15