SURFEX v8.1
General documentation of Surfex
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, HSELECT, U, DTS, G, S, HPROGRAM)
7 ! ####################################
8 !
9 !!**** *WRITE_PGD_SEAFLUX_n* - routine to write pgd surface variables in their respective files
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 !! B. Decharme *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 05/2011
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
41 !
43 USE modd_surf_atm_n, ONLY : surf_atm_t
45 USE modd_sfx_grid_n, ONLY : grid_t
46 USE modd_seaflux_n, ONLY : seaflux_t
47 !
48 USE modi_init_io_surf_n
49 USE modi_writesurf_pgd_seaflux_n
50 USE modi_end_io_surf_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 !
63 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
64  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
65 TYPE(surf_atm_t), INTENT(INOUT) :: U
66 TYPE(data_seaflux_t), INTENT(INOUT) :: DTS
67 TYPE(grid_t), INTENT(INOUT) :: G
68 TYPE(seaflux_t), INTENT(INOUT) :: S
69 !
70  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
71 REAL(KIND=JPRB) :: ZHOOK_HANDLE
72 ! ! 'ALL' : all fields are written
73 !
74 !* 0.2 Declarations of local variables
75 ! -------------------------------
76 !
77 !-------------------------------------------------------------------------------
78 !
79 !
80 ! Initialisation for IO
81 !
82 IF (lhook) CALL dr_hook('WRITE_PGD_SEAFLUX_N',0,zhook_handle)
83  CALL init_io_surf_n(dtco, u, hprogram,'SEA ','SEAFLX','WRITE')
84 !
85 !* 1. Selection of surface scheme
86 ! ---------------------------
87 !
88  CALL writesurf_pgd_seaflux_n(hselect, dts, g, s, hprogram)
89 !
90 !-------------------------------------------------------------------------------
91 !
92 ! End of IO
93 !
94  CALL end_io_surf_n(hprogram)
95 IF (lhook) CALL dr_hook('WRITE_PGD_SEAFLUX_N',1,zhook_handle)
96 !
97 END SUBROUTINE write_pgd_seaflux_n
subroutine writesurf_pgd_seaflux_n(HSELECT, DTS, G, S, HPROGRAM)
integer, parameter jprb
Definition: parkind1.F90:32
subroutine end_io_surf_n(HPROGRAM)
Definition: end_io_surfn.F90:7
logical lhook
Definition: yomhook.F90:15
subroutine write_pgd_seaflux_n(DTCO, HSELECT, U, DTS, G, S, HPROG
subroutine init_io_surf_n(DTCO, U, HPROGRAM, HMASK, HSCHEME, HACTION