SURFEX v8.1
General documentation of Surfex
write_pgd_inland_watern.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 write_pgd_inland_water_n (DTCO, HSELECT, U, WG, W, FG, F, &
7  HPROGRAM)
8 ! ####################################
9 !
10 !!**** *WRITE_PGD_INLAND_WATER_n* - routine to write pgd surface variables in their respective files
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 !! B. Decharme *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 05/2011
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
43 USE modd_surf_atm_n, ONLY : surf_atm_t
44 USE modd_sfx_grid_n, ONLY : grid_t
45 USE modd_watflux_n, ONLY : watflux_t
46 USE modd_flake_n, ONLY : flake_t
47 !
48 !
49 USE modi_write_pgd_watflux_n
50 USE modi_write_pgd_flake_n
51 !
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 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
63  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
64 TYPE(surf_atm_t), INTENT(INOUT) :: U
65 TYPE(grid_t), INTENT(INOUT) :: WG
66 TYPE(watflux_t), INTENT(INOUT) :: W
67 TYPE(grid_t), INTENT(INOUT) :: FG
68 TYPE(flake_t), INTENT(INOUT) :: F
69 !
70 !
71  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
72 REAL(KIND=JPRB) :: ZHOOK_HANDLE
73 ! ! 'ALL' : all fields are written
74 !
75 !* 0.2 Declarations of local variables
76 ! -------------------------------
77 !
78 !-------------------------------------------------------------------------------
79 !
80 !* 1. Selection of surface scheme
81 ! ---------------------------
82 !
83 IF (lhook) CALL dr_hook('WRITE_PGD_INLAND_WATER_N',0,zhook_handle)
84 IF (u%CWATER=='WATFLX') THEN
85  CALL write_pgd_watflux_n(dtco, hselect, u, wg, w, hprogram)
86 ELSE IF (u%CWATER=='FLAKE ') THEN
87  CALL write_pgd_flake_n(dtco, hselect, u, fg, f, hprogram)
88 END IF
89 IF (lhook) CALL dr_hook('WRITE_PGD_INLAND_WATER_N',1,zhook_handle)
90 !
91 !-------------------------------------------------------------------------------
92 !
93 END SUBROUTINE write_pgd_inland_water_n
subroutine write_pgd_flake_n(DTCO, HSELECT, U, G, F, HPROGRAM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine write_pgd_watflux_n(DTCO, HSELECT, U, G, W, HPROGRAM)
logical lhook
Definition: yomhook.F90:15
subroutine write_pgd_inland_water_n(DTCO, HSELECT, U, WG, W, FG,