SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
prep_ctrl_surf_atm.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 prep_ctrl_surf_atm(K2M,OSURF_BUDGET,O2M_MIN_ZS,ORAD_BUDGET, &
7  ocoef,osurf_vars,osurf_budgetc, &
8  oreset_budgetc,onowrite_texfile, &
9  oselect,kluout,oprovar_to_diag)
10 ! ########################################################################
11 !
12 !!**** *PREP_CTRL_SURF_ATM* - routine to check that diagnostics are switched off
13 !!
14 !!
15 !! PURPOSE
16 !! -------
17 !!
18 !!** METHOD
19 !! ------
20 !!
21 !! EXTERNAL
22 !! --------
23 !!
24 !!
25 !! IMPLICIT ARGUMENTS
26 !! ------------------
27 !!
28 !! REFERENCE
29 !! ---------
30 !!
31 !!
32 !! AUTHOR
33 !! ------
34 !! P. Le Moigne *Meteo France*
35 !!
36 !! MODIFICATIONS
37 !! -------------
38 !! Original 04/2007
39 !-------------------------------------------------------------------------------
40 !
41 !* 0. DECLARATIONS
42 ! ------------
43 !
44 USE yomhook ,ONLY : lhook, dr_hook
45 USE parkind1 ,ONLY : jprb
46 !
47 IMPLICIT NONE
48 !
49 !* 0.1 Declarations of arguments
50 ! -------------------------
51 !
52 !
53 INTEGER, INTENT(INOUT) :: k2m ! flag for operational 2m quantities
54 LOGICAL, INTENT(INOUT) :: osurf_budget ! flag for surface budget
55 LOGICAL, INTENT(INOUT) :: o2m_min_zs ! flag for 2m quantities on min. orography
56 LOGICAL, INTENT(INOUT) :: orad_budget ! flag for radiative budget
57 LOGICAL, INTENT(INOUT) :: ocoef ! flag for transfer coefficients
58 LOGICAL, INTENT(INOUT) :: osurf_vars ! flag for surface variables
59 LOGICAL, INTENT(INOUT) :: onowrite_texfile ! flag for surface variables
60 INTEGER, INTENT(IN) :: kluout ! unit number
61 LOGICAL, INTENT(INOUT) :: osurf_budgetc ! flag for cumulated surface budget
62 LOGICAL, INTENT(INOUT) :: oreset_budgetc ! flag for cumulated surface budget
63 LOGICAL, INTENT(INOUT) :: oselect ! switch to control which fields are written
64 LOGICAL, INTENT(INOUT) :: oprovar_to_diag ! switch to write (or not) prognostic variable
65 REAL(KIND=JPRB) :: zhook_handle
66 !
67 !* 0.2 Declarations of local variables
68 ! -------------------------------
69 !
70 !-------------------------------------------------------------------------------
71 !
72 IF (lhook) CALL dr_hook('PREP_CTRL_SURF_ATM',0,zhook_handle)
73 k2m = 0
74 !
75 osurf_budget = .false.
76 o2m_min_zs = .false.
77 orad_budget = .false.
78 ocoef = .false.
79 osurf_vars = .false.
80 !
81 osurf_budgetc = .false.
82 oreset_budgetc = .false.
83 !
84 onowrite_texfile = .true.
85 oselect = .false.
86 oprovar_to_diag = .false.
87 !
88 WRITE(kluout,*)'SURF_ATM DIAGNOSTICS DESACTIVATED'
89 IF (lhook) CALL dr_hook('PREP_CTRL_SURF_ATM',1,zhook_handle)
90 !-------------------------------------------------------------------------------
91 !
92 END SUBROUTINE prep_ctrl_surf_atm
subroutine prep_ctrl_surf_atm(K2M, OSURF_BUDGET, O2M_MIN_ZS, ORAD_BUDGET, OCOEF, OSURF_VARS, OSURF_BUDGETC, ORESET_BUDGETC, ONOWRITE_TEXFILE, OSELECT, KLUOUT, OPROVAR_TO_DIAG)