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