SURFEX v8.1
General documentation of Surfex
write_diag_inland_watern.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_inland_water_n (DTCO, DUO, U, WM, FM, HPROGRAM,HWRITE)
7 ! ###############################################################################
8 !
9 !!**** *WRITE_DIAG_INLAND_WATER_n * - Chooses the surface schemes for lakes 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 !
30 USE modd_surfex_n, ONLY : flake_model_t
32 !
34 USE modd_diag_n, ONLY : diag_options_t
35 USE modd_surf_atm_n, ONLY : surf_atm_t
37 USE modd_watflux_n, ONLY : watflux_t
38 !
39 USE modd_surf_par, ONLY : xundef
40 
41 USE modi_write_diag_watflux_n
42 USE modi_write_diag_flake_n
43 !
44 !
45 USE yomhook ,ONLY : lhook, dr_hook
46 USE parkind1 ,ONLY : jprb
47 !
48 IMPLICIT NONE
49 !
50 !* 0.1 declarations of arguments
51 !
52 !
53 !
54 TYPE(data_cover_t), INTENT(INOUT) :: DTCO
55 TYPE(diag_options_t), INTENT(INOUT) :: DUO
56 TYPE(surf_atm_t), INTENT(INOUT) :: U
57 TYPE(watflux_model_t), INTENT(INOUT) :: WM
58 TYPE(flake_model_t), INTENT(INOUT) :: FM
59 !
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
62  CHARACTER(LEN=3), INTENT(IN) :: HWRITE ! 'PGD' : only physiographic fields are written
63 REAL(KIND=JPRB) :: ZHOOK_HANDLE
64 ! ! 'ALL' : all fields are written
65 !
66 !
67 !* 0.2 declarations of local variables
68 !
69 !-------------------------------------------------------------------------------------
70 !
71 IF (lhook) CALL dr_hook('WRITE_DIAG_INLAND_WATER_N',0,zhook_handle)
72 IF (u%CWATER=='WATFLX') THEN
73  CALL write_diag_watflux_n(dtco, duo, u, wm, hprogram,hwrite)
74 END IF
75 IF (u%CWATER=='FLAKE ') THEN
76  CALL write_diag_flake_n(dtco, duo, u, fm, hprogram,hwrite)
77 END IF
78 IF (lhook) CALL dr_hook('WRITE_DIAG_INLAND_WATER_N',1,zhook_handle)
79 !
80 !-------------------------------------------------------------------------------------
81 !
82 END SUBROUTINE write_diag_inland_water_n
subroutine write_diag_inland_water_n(DTCO, DUO, U, WM, FM, HPROGRAM, HWRITE)
real, parameter xundef
subroutine write_diag_watflux_n(DTCO, DUO, U, WM, HPROGRAM, HWRITE)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine write_diag_flake_n(DTCO, DUO, U, FM, HPROGRAM, HWRITE)