SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_diag_seb_oceann.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_diag_seb_ocean_n (DTCO, DGU, U, DGO, &
7  hprogram)
8 ! #################################
9 !
10 !!**** *WRITE_DIAG_SEB_OCEAN_n* - write the oceanic diagnostic fields
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!
16 !!** METHOD
17 !! ------
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !!
23 !! AUTHOR
24 !! ------
25 !! C. Lebeaupin Brossier *Meteo France*
26 !!
27 !! MODIFICATIONS
28 !! -------------
29 !! Original 04/2007
30 !-------------------------------------------------------------------------------
31 !
32 !* 0. DECLARATIONS
33 ! ------------
34 !
35 !
38 USE modd_surf_atm_n, ONLY : surf_atm_t
40 !
42 !
43 USE modi_init_io_surf_n
45 USE modi_end_io_surf_n
46 !
47 !
48 USE yomhook ,ONLY : lhook, dr_hook
49 USE parkind1 ,ONLY : jprb
50 !
51 IMPLICIT NONE
52 !
53 !* 0.1 Declarations of arguments
54 ! -------------------------
55 !
56 TYPE(data_cover_t), INTENT(INOUT) :: dtco
57 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
58 TYPE(surf_atm_t), INTENT(INOUT) :: u
59 TYPE(diag_ocean_t), INTENT(INOUT) :: dgo
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling
62 !
63 !* 0.2 Declarations of local variables
64 ! -------------------------------
65 !
66 INTEGER :: iresp ! IRESP : return-code if a problem appears
67  CHARACTER(LEN=12) :: yrecfm ! Name of the article to be read
68  CHARACTER(LEN=100):: ycomment ! Comment string
69 REAL(KIND=JPRB) :: zhook_handle
70 !
71 !-------------------------------------------------------------------------------
72 !
73 ! Initialisation for IO
74 !
75 IF (lhook) CALL dr_hook('WRITE_DIAG_SEB_OCEAN_N',0,zhook_handle)
76  CALL init_io_surf_n(dtco, dgu, u, &
77  hprogram,'SEA ','SEAFLX','WRITE')
78 !
79 !
80 !* 2. Mean values in OML :
81 ! --------------------
82 !
83  yrecfm='TOML'
84  ycomment='X_Y_'//yrecfm
85 !
86  CALL write_surf(dgu, u, &
87  hprogram,yrecfm,dgo%XTOCMOY(:),iresp,hcomment=ycomment)
88 !
89  yrecfm='SOML'
90  ycomment='X_Y_'//yrecfm
91 !
92  CALL write_surf(dgu, u, &
93  hprogram,yrecfm,dgo%XSOCMOY(:),iresp,hcomment=ycomment)
94 !
95  yrecfm='UOML'
96  ycomment='X_Y_'//yrecfm
97 !
98  CALL write_surf(dgu, u, &
99  hprogram,yrecfm,dgo%XUOCMOY(:),iresp,hcomment=ycomment)
100 !
101  yrecfm='VOML'
102  ycomment='X_Y_'//yrecfm
103 !
104  CALL write_surf(dgu, u, &
105  hprogram,yrecfm,dgo%XVOCMOY(:),iresp,hcomment=ycomment)
106 !
107  yrecfm='DOML'
108  ycomment='X_Y_'//yrecfm
109 !
110  CALL write_surf(dgu, u, &
111  hprogram,yrecfm,dgo%XDOCMOY(:),iresp,hcomment=ycomment)
112 !
113 !------------------------------------------------------------------------------
114 !
115 ! End of IO
116 !
117  CALL end_io_surf_n(hprogram)
118 IF (lhook) CALL dr_hook('WRITE_DIAG_SEB_OCEAN_N',1,zhook_handle)
119 !
120 !
121 END SUBROUTINE write_diag_seb_ocean_n
subroutine init_io_surf_n(DTCO, DGU, U, HPROGRAM, HMASK, HSCHEME, HACTION)
subroutine end_io_surf_n(HPROGRAM)
Definition: end_io_surfn.F90:6
subroutine write_diag_seb_ocean_n(DTCO, DGU, U, DGO, HPROGRAM)