SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_pgd_seafluxn.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_seaflux_n (DTCO, DGU, U, DTS, SG, S, &
7  hprogram)
8 ! ####################################
9 !
10 !!**** *WRITE_PGD_SEAFLUX_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 !
42 !
45 USE modd_surf_atm_n, ONLY : surf_atm_t
48 USE modd_seaflux_n, ONLY : seaflux_t
49 !
50 USE modi_init_io_surf_n
51 USE modi_writesurf_pgd_seaflux_n
52 USE modi_end_io_surf_n
53 !
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(data_cover_t), INTENT(INOUT) :: dtco
66 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
67 TYPE(surf_atm_t), INTENT(INOUT) :: u
68 TYPE(data_seaflux_t), INTENT(INOUT) :: dts
69 TYPE(seaflux_grid_t), INTENT(INOUT) :: sg
70 TYPE(seaflux_t), INTENT(INOUT) :: s
71 !
72  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
73 REAL(KIND=JPRB) :: zhook_handle
74 ! ! 'ALL' : all fields are written
75 !
76 !* 0.2 Declarations of local variables
77 ! -------------------------------
78 !
79 !-------------------------------------------------------------------------------
80 !
81 !
82 ! Initialisation for IO
83 !
84 IF (lhook) CALL dr_hook('WRITE_PGD_SEAFLUX_N',0,zhook_handle)
85  CALL init_io_surf_n(dtco, dgu, u, &
86  hprogram,'SEA ','SEAFLX','WRITE')
87 !
88 !* 1. Selection of surface scheme
89 ! ---------------------------
90 !
91  CALL writesurf_pgd_seaflux_n(dgu, u, &
92  dts, sg, s, &
93  hprogram)
94 !
95 !-------------------------------------------------------------------------------
96 !
97 ! End of IO
98 !
99  CALL end_io_surf_n(hprogram)
100 IF (lhook) CALL dr_hook('WRITE_PGD_SEAFLUX_N',1,zhook_handle)
101 !
102 END SUBROUTINE write_pgd_seaflux_n
subroutine init_io_surf_n(DTCO, DGU, U, HPROGRAM, HMASK, HSCHEME, HACTION)
subroutine writesurf_pgd_seaflux_n(DGU, U, DTS, SG, S, HPROGRAM)
subroutine write_pgd_seaflux_n(DTCO, DGU, U, DTS, SG, S, HPROGRAM)
subroutine end_io_surf_n(HPROGRAM)
Definition: end_io_surfn.F90:6