SURFEX v8.1
General documentation of Surfex
default_diag_flake.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 default_diag_flake(K2M,OSURF_BUDGET,O2M_MIN_ZS,ORAD_BUDGET,OCOEF,OSURF_VARS,&
7  OWATER_PROFILE,OSURF_BUDGETC,ORESET_BUDGETC,PDIAG_TSTEP,&
8  PZWAT_PROFILE )
9 ! ########################################################################
10 !
11 !!**** *DEFAULT_DIAG_FLAKE* - routine to set default values for the choice of diagnostics
12 !!
13 !! PURPOSE
14 !! -------
15 !!
16 !!** METHOD
17 !! ------
18 !!
19 !! EXTERNAL
20 !! --------
21 !!
22 !!
23 !! IMPLICIT ARGUMENTS
24 !! ------------------
25 !!
26 !! REFERENCE
27 !! ---------
28 !!
29 !!
30 !! AUTHOR
31 !! ------
32 !! V. Masson *Meteo France*
33 !!
34 !! MODIFICATIONS
35 !! -------------
36 !! Original 01/2004
37 !-------------------------------------------------------------------------------
38 !
39 !* 0. DECLARATIONS
40 ! ------------
41 !
42 USE modd_surf_par, ONLY : xundef
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 INTEGER, INTENT(OUT) :: K2M ! flag for operational 2m quantities
55 LOGICAL, INTENT(OUT) :: OSURF_BUDGET ! flag for surface budget
56 LOGICAL, INTENT(OUT) :: O2M_MIN_ZS
57 LOGICAL, INTENT(OUT) :: ORAD_BUDGET ! flag for radiative budget
58 LOGICAL, INTENT(OUT) :: OCOEF
59 LOGICAL, INTENT(OUT) :: OSURF_VARS
60 LOGICAL, INTENT(OUT) :: OWATER_PROFILE ! flag for inline computation of water
61  !temperature at given depths according
62  !to FLake model
63 LOGICAL, INTENT(OUT) :: OSURF_BUDGETC ! flag for cumulated surface budget
64 LOGICAL, INTENT(OUT) :: ORESET_BUDGETC! flag for cumulated surface budget
65 REAL, INTENT(OUT) :: PDIAG_TSTEP ! time-step for writing
66 
67 REAL, DIMENSION(:), INTENT(OUT) :: PZWAT_PROFILE ! depths where to compute water
68  ! temperatures according FLake
69  ! model - variable readed in the
70  ! namelist
71 REAL(KIND=JPRB) :: ZHOOK_HANDLE
72 !
73 !* 0.2 Declarations of local variables
74 ! -------------------------------
75 !
76 !-------------------------------------------------------------------------------
77 !
78 IF (lhook) CALL dr_hook('DEFAULT_DIAG_FLAKE',0,zhook_handle)
79 !
80 k2m = 0
81 osurf_budget = .false.
82 !
83 o2m_min_zs = .false.
84 !
85 orad_budget = .false.
86 !
87 ocoef = .false.
88 osurf_vars = .false.
89 !
90 owater_profile = .false.
91 !
92 osurf_budgetc= .false.
93 oreset_budgetc= .false.
94 !
95 pdiag_tstep = xundef
96 !
97 !ALLOCATE (PZWAT_PROFILE(100)) !maximum of 100 levels may be asked
98 pzwat_profile = xundef
99 IF (lhook) CALL dr_hook('DEFAULT_DIAG_FLAKE',1,zhook_handle)
100 
101 !
102 !-------------------------------------------------------------------------------
103 !
104 END SUBROUTINE default_diag_flake
subroutine default_diag_flake(K2M, OSURF_BUDGET, O2M_MIN_ZS, ORAD_BUD
real, parameter xundef
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15