SURFEX v8.1
General documentation of Surfex
writesurf_pgd_watfluxn.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_watflux_n (HSELECT, G, W, HPROGRAM)
7 ! ###################################################
8 !
9 !!**** *WRITESURF_PGD_WATFLUX_n* - writes WATFLUX fields
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 01/2003
35 !! B. Decharme 07/2011 : delete argument HWRITE
36 !! M. Moge 02/2015 parallelization using WRITE_LCOVER
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 USE modd_sfx_grid_n, ONLY : grid_t
43 USE modd_watflux_n, ONLY : watflux_t
44 !
45 USE modd_data_cover_par, ONLY : jpcover
46 !
48 !
50 USE modi_write_grid
51 USE modi_write_lcover
52 !
53 USE yomhook ,ONLY : lhook, dr_hook
54 USE parkind1 ,ONLY : jprb
55 !
56 IMPLICIT NONE
57 !
58 !* 0.1 Declarations of arguments
59 ! -------------------------
60 !
61 !
62  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
63 !
64 TYPE(grid_t), INTENT(INOUT) :: G
65 TYPE(watflux_t), INTENT(INOUT) :: W
66 !
67  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling
68 !
69 !* 0.2 Declarations of local variables
70 ! -------------------------------
71 !
72 INTEGER :: IRESP ! IRESP : return-code if a problem appears
73  CHARACTER(LEN=12) :: YRECFM ! Name of the article to be read
74  CHARACTER(LEN=100):: YCOMMENT ! Comment string
75 INTEGER :: JCOVER ! loop index
76 REAL(KIND=JPRB) :: ZHOOK_HANDLE
77 !
78 !-------------------------------------------------------------------------------
79 !
80 !
81 !* 2. Physiographic data fields:
82 ! -------------------------
83 !
84 !* cover classes
85 !
86 IF (lhook) CALL dr_hook('WRITESURF_PGD_WATFLUX_N',0,zhook_handle)
87 !
88  CALL write_lcover(hselect, hprogram, w%LCOVER)
89 !
90 !* orography
91 !
92 yrecfm='ZS'
93 ycomment='ZS'
94  CALL write_surf(hselect, &
95  hprogram,yrecfm,w%XZS(:),iresp,hcomment=ycomment)
96 !
97 !* latitude, longitude
98 !
99  CALL write_grid(hselect, &
100  hprogram,g%CGRID,g%XGRID_PAR,g%XLAT,g%XLON,g%XMESH_SIZE,iresp)
101 !
102 IF (lhook) CALL dr_hook('WRITESURF_PGD_WATFLUX_N',1,zhook_handle)
103 !
104 !-------------------------------------------------------------------------------
105 !
106 END SUBROUTINE writesurf_pgd_watflux_n
integer, parameter jprb
Definition: parkind1.F90:32
subroutine write_grid(HSELECT, HPROGRAM, HGRID, PGRID_PAR, PLAT, PLON,
Definition: write_grid.F90:7
logical lhook
Definition: yomhook.F90:15
subroutine writesurf_pgd_watflux_n(HSELECT, G, W, HPROGRAM)
subroutine write_lcover(HSELECT, HPROGRAM, OCOVER)
Definition: write_lcover.F90:7