SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_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_sea_n (DTCO, DGU, U, SM, &
7  hprogram,hwrite)
8 ! ####################################
9 !
10 !!**** *WRITE_SEA_n* - routine to write 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 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 01/2003
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 !
44 USE modd_surf_atm_n, ONLY : surf_atm_t
45 !
47 !
48 USE modi_write_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 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
63 TYPE(surf_atm_t), INTENT(INOUT) :: u
64 TYPE(seaflux_model_t), INTENT(INOUT) :: sm
65 !
66  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
67  CHARACTER(LEN=3), INTENT(IN) :: hwrite ! 'PREP' : does not write SBL XUNDEF fields
68 ! ! 'ALL' : all fields are written
69 REAL(KIND=JPRB) :: zhook_handle
70 !
71 !* 0.2 Declarations of local variables
72 ! -------------------------------
73 !
74 !-------------------------------------------------------------------------------
75 !
76 !* 1. Selection of surface scheme
77 ! ---------------------------
78 !
79 IF (lhook) CALL dr_hook('WRITE_SEA_N',0,zhook_handle)
80 IF (u%CSEA=='SEAFLX') THEN
81  CALL write_seaflux_n(dtco, dgu, u, sm, &
82  hprogram,hwrite)
83 END IF
84 IF (lhook) CALL dr_hook('WRITE_SEA_N',1,zhook_handle)
85 !
86 !-------------------------------------------------------------------------------
87 !
88 END SUBROUTINE write_sea_n
subroutine write_sea_n(DTCO, DGU, U, SM, HPROGRAM, HWRITE)
Definition: write_sean.F90:6
subroutine write_seaflux_n(DTCO, DGU, U, SM, HPROGRAM, HWRITE)