SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
writesurf_pgd_tsz0_parn.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 writesurf_pgd_tsz0_par_n (DGU, U, &
7  dtz, &
8  hprogram)
9 ! ################################################
10 !
11 !!**** *WRITESURF_PGD_TSZ0_PAR_n* - writes TSZ0 physiographic fields
12 !!
13 !!
14 !! PURPOSE
15 !! -------
16 !!
17 !!** METHOD
18 !! ------
19 !!
20 !! EXTERNAL
21 !! --------
22 !!
23 !!
24 !! IMPLICIT ARGUMENTS
25 !! ------------------
26 !!
27 !! REFERENCE
28 !! ---------
29 !!
30 !!
31 !! AUTHOR
32 !! ------
33 !! V. Masson *Meteo France*
34 !!
35 !! MODIFICATIONS
36 !! -------------
37 !! Original 01/2003
38 !! P. Le Moigne 12/2004 : add type of photosynthesis
39 !-------------------------------------------------------------------------------
40 !
41 !* 0. DECLARATIONS
42 ! ------------
43 !
44 !
45 !
46 !
47 !
49 USE modd_surf_atm_n, ONLY : surf_atm_t
50 !
51 USE modd_data_tsz0_n, ONLY : data_tsz0_t
52 !
54 !
55 USE yomhook ,ONLY : lhook, dr_hook
56 USE parkind1 ,ONLY : jprb
57 !
58 IMPLICIT NONE
59 !
60 !* 0.1 Declarations of arguments
61 ! -------------------------
62 !
63 !
64 !
65 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
66 TYPE(surf_atm_t), INTENT(INOUT) :: u
67 !
68 TYPE(data_tsz0_t), INTENT(INOUT) :: dtz
69 !
70  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling
71 !
72 !* 0.2 Declarations of local variables
73 ! -------------------------------
74 !
75 INTEGER :: iresp ! IRESP : return-code if a problem appears
76  CHARACTER(LEN=12) :: yrecfm ! Name of the article to be read
77  CHARACTER(LEN=100):: ycomment ! Comment string
78 REAL(KIND=JPRB) :: zhook_handle
79 !
80 !-------------------------------------------------------------------------------
81 !
82 IF (lhook) CALL dr_hook('WRITESURF_PGD_TSZ0_PAR_N',0,zhook_handle)
83 !
84 dtz%NTIME = SIZE(dtz%XDATA_DTS)
85 yrecfm = 'ND_TSZ0_TIME'
86 ycomment = '(-)'
87  CALL write_surf(dgu, u, &
88  hprogram,yrecfm,dtz%NTIME,iresp,hcomment=ycomment)
89 !
90 yrecfm = 'D_DTS'
91 ycomment = 'X_Y_DATA_DTS'
92  CALL write_surf(dgu, u, &
93  hprogram,yrecfm,dtz%XDATA_DTS(:),iresp,hcomment=ycomment,hdir='-',hnam_dim="Nforc_tsz0 ")
94 !
95 yrecfm = 'D_DHUGRD'
96 ycomment = 'X_Y_DATA_DHUGRD'
97  CALL write_surf(dgu, u, &
98  hprogram,yrecfm,dtz%XDATA_DHUGRD(:),iresp,hcomment=ycomment,hdir='-',hnam_dim="Nforc_tsz0 ")
99 !
100 IF (lhook) CALL dr_hook('WRITESURF_PGD_TSZ0_PAR_N',1,zhook_handle)
101 !
102 !-------------------------------------------------------------------------------
103 !
104 END SUBROUTINE writesurf_pgd_tsz0_par_n
subroutine writesurf_pgd_tsz0_par_n(DGU, U, DTZ, HPROGRAM)