SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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_BUDGET, OCOEF, OSURF_VARS, OWATER_PROFILE, OSURF_BUDGETC, ORESET_BUDGETC, PDIAG_TSTEP, PZWAT_PROFILE)