SURFEX v8.1
General documentation of Surfex
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 (HSELECT, DTZ, HPROGRAM)
7 ! ################################################
8 !
9 !!**** *WRITESURF_PGD_TSZ0_PAR_n* - writes TSZ0 physiographic fields
10 !!
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 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 01/2003
36 !! P. Le Moigne 12/2004 : add type of photosynthesis
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 !
43 USE modd_data_tsz0_n, ONLY : data_tsz0_t
44 !
46 !
47 USE yomhook ,ONLY : lhook, dr_hook
48 USE parkind1 ,ONLY : jprb
49 !
50 IMPLICIT NONE
51 !
52 !* 0.1 Declarations of arguments
53 ! -------------------------
54 !
55  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
56 !
57 TYPE(data_tsz0_t), INTENT(INOUT) :: DTZ
58 !
59  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling
60 !
61 !* 0.2 Declarations of local variables
62 ! -------------------------------
63 !
64 INTEGER :: IRESP ! IRESP : return-code if a problem appears
65  CHARACTER(LEN=12) :: YRECFM ! Name of the article to be read
66  CHARACTER(LEN=100):: YCOMMENT ! Comment string
67 REAL(KIND=JPRB) :: ZHOOK_HANDLE
68 !
69 !-------------------------------------------------------------------------------
70 !
71 IF (lhook) CALL dr_hook('WRITESURF_PGD_TSZ0_PAR_N',0,zhook_handle)
72 !
73 dtz%NTIME = SIZE(dtz%XDATA_DTS)
74 yrecfm = 'ND_TSZ0_TIME'
75 ycomment = '(-)'
76  CALL write_surf(hselect, &
77  hprogram,yrecfm,dtz%NTIME,iresp,hcomment=ycomment)
78 !
79 yrecfm = 'D_DTS'
80 ycomment = 'X_Y_DATA_DTS'
81  CALL write_surf(hselect, &
82  hprogram,yrecfm,dtz%XDATA_DTS(:),iresp,hcomment=ycomment,hdir='-',hnam_dim="Nforc_tsz0 ")
83 !
84 yrecfm = 'D_DHUGRD'
85 ycomment = 'X_Y_DATA_DHUGRD'
86  CALL write_surf(hselect, &
87  hprogram,yrecfm,dtz%XDATA_DHUGRD(:),iresp,hcomment=ycomment,hdir='-',hnam_dim="Nforc_tsz0 ")
88 !
89 IF (lhook) CALL dr_hook('WRITESURF_PGD_TSZ0_PAR_N',1,zhook_handle)
90 !
91 !-------------------------------------------------------------------------------
92 !
93 END SUBROUTINE writesurf_pgd_tsz0_par_n
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine writesurf_pgd_tsz0_par_n(HSELECT, DTZ, HPROGRAM)