SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
write_diag_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_diag_sea_n (DTCO, DGU, U, SM, &
7  hprogram,hwrite)
8 ! ###############################################################################
9 !
10 !!**** *WRITE_DIAG_SEA_n * - Chooses the surface schemes for sea diagnostics
11 !!
12 !! PURPOSE
13 !! -------
14 !
15 !!** METHOD
16 !! ------
17 !!
18 !! REFERENCE
19 !! ---------
20 !!
21 !!
22 !! AUTHOR
23 !! ------
24 !! V. Masson
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !! Original 01/2004
29 !!------------------------------------------------------------------
30 !
33 USE modd_surf_atm_n, ONLY : surf_atm_t
35 !
36 USE modd_surf_par, ONLY : xundef
37 !
38 USE modi_write_diag_seaflux_n
39 !
40 !
41 USE yomhook ,ONLY : lhook, dr_hook
42 USE parkind1 ,ONLY : jprb
43 !
44 IMPLICIT NONE
45 !
46 !* 0.1 declarations of arguments
47 !
48 !
49 TYPE(data_cover_t), INTENT(INOUT) :: dtco
50 TYPE(diag_surf_atm_t), INTENT(INOUT) :: dgu
51 TYPE(surf_atm_t), INTENT(INOUT) :: u
52 TYPE(seaflux_model_t), INTENT(INOUT) :: sm
53 !
54  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
55  CHARACTER(LEN=3), INTENT(IN) :: hwrite ! 'PGD' : only physiographic fields are written
56 REAL(KIND=JPRB) :: zhook_handle
57 ! ! 'ALL' : all fields are written
58 !
59 !
60 !* 0.2 declarations of local variables
61 !
62 !-------------------------------------------------------------------------------------
63 !
64 IF (lhook) CALL dr_hook('WRITE_DIAG_SEA_N',0,zhook_handle)
65 IF (u%CSEA=='SEAFLX') THEN
66  CALL write_diag_seaflux_n(dtco, dgu, u, sm, &
67  hprogram,hwrite)
68 END IF
69 IF (lhook) CALL dr_hook('WRITE_DIAG_SEA_N',1,zhook_handle)
70 !
71 !-------------------------------------------------------------------------------------
72 !
73 END SUBROUTINE write_diag_sea_n
subroutine write_diag_sea_n(DTCO, DGU, U, SM, HPROGRAM, HWRITE)
subroutine write_diag_seaflux_n(DTCO, DGU, U, SM, HPROGRAM, HWRITE)