SURFEX v8.1
General documentation of Surfex
write_pgd_sean.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_sea_n (DTCO, HSELECT, U, DTS, G, S, &
7  HPROGRAM)
8 ! ####################################
9 !
10 !!**** *WRITE_PGD_SEA_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
45 USE modd_sfx_grid_n, ONLY : grid_t
46 USE modd_seaflux_n, ONLY : seaflux_t
47 !
48 USE modi_write_pgd_seaflux_n
49 !
50 !
51 USE yomhook ,ONLY : lhook, dr_hook
52 USE parkind1 ,ONLY : jprb
53 !
54 IMPLICIT NONE
55 !
56 !* 0.1 Declarations of arguments
57 ! -------------------------
58 !
59 !
60 !
61 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
62  CHARACTER(LEN=*), DIMENSION(:), INTENT(IN) :: HSELECT
63 TYPE(surf_atm_t), INTENT(INOUT) :: U
64 TYPE(data_seaflux_t), INTENT(INOUT) :: DTS
65 TYPE(grid_t), INTENT(INOUT) :: G
66 TYPE(seaflux_t), INTENT(INOUT) :: S
67 !
68  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
69 REAL(KIND=JPRB) :: ZHOOK_HANDLE
70 ! ! 'ALL' : all fields are written
71 !
72 !* 0.2 Declarations of local variables
73 ! -------------------------------
74 !
75 !-------------------------------------------------------------------------------
76 !
77 !* 1. Selection of surface scheme
78 ! ---------------------------
79 !
80 IF (lhook) CALL dr_hook('WRITE_PGD_SEA_N',0,zhook_handle)
81 IF (u%CSEA=='SEAFLX') THEN
82  CALL write_pgd_seaflux_n(dtco, hselect, u, dts, g, s, hprogram)
83 END IF
84 IF (lhook) CALL dr_hook('WRITE_PGD_SEA_N',1,zhook_handle)
85 !
86 !-------------------------------------------------------------------------------
87 !
88 END SUBROUTINE write_pgd_sea_n
subroutine write_pgd_sea_n(DTCO, HSELECT, U, DTS, G, S, HPROGRAM)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine write_pgd_seaflux_n(DTCO, HSELECT, U, DTS, G, S, HPROG