SURFEX v8.1
General documentation of Surfex
flag_update.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 flag_update (DIO, DUO, &
7  ONOWRITE_CANOPY,OPGD,OPROVAR_TO_DIAG,OSELECT)
8 ! ############################################################
9 !
10 !!**** *FLAG_UPDATE* - routine to modify selection of output fields
11 !!
12 !! PURPOSE
13 !! -------
14 !!
15 !!** METHOD
16 !! ------
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !!
22 !! IMPLICIT ARGUMENTS
23 !! ------------------
24 !!
25 !! REFERENCE
26 !! ---------
27 !!
28 !!
29 !! AUTHOR
30 !! ------
31 !! P. Le Moigne *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 02/2008
36 !
37 ! B.Decharme 10/2009 flag to desactivate writing of pgd
38 !-------------------------------------------------------------------------------
39 !
40 !* 0. DECLARATIONS
41 ! ------------
42 !
43 !
44 USE modd_diag_n, ONLY : diag_options_t
45 !
47 !
48 !
49 USE yomhook ,ONLY : lhook, dr_hook
50 USE parkind1 ,ONLY : jprb
51 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57 !
58 TYPE(diag_options_t), INTENT(INOUT) :: DIO
59 TYPE(diag_options_t), INTENT(INOUT) :: DUO
60 !
61 LOGICAL, INTENT(IN) :: ONOWRITE_CANOPY ! flag to (des)activate writing of canopy fields
62 LOGICAL, INTENT(IN) :: OPGD ! flag to (des)activate writing of pgd field
63 LOGICAL, INTENT(IN) :: OPROVAR_TO_DIAG ! flag to (des)activate writing of diag of prognostic field
64 LOGICAL, INTENT(IN) :: OSELECT ! flag to (des)activate control which fields are written
65 REAL(KIND=JPRB) :: ZHOOK_HANDLE
66 !
67 !* 0.2 Declarations of local variables
68 ! -------------------------------
69 !
70 !-------------------------------------------------------------------------------
71 IF (lhook) CALL dr_hook('FLAG_UPDATE',0,zhook_handle)
72 lnowrite_canopy = onowrite_canopy
73 dio%LPGD = opgd
74 duo%LPROVAR_TO_DIAG = oprovar_to_diag
75 duo%LSELECT = oselect
76 IF (lhook) CALL dr_hook('FLAG_UPDATE',1,zhook_handle)
77 !-------------------------------------------------------------------------------
78 !
79 END SUBROUTINE flag_update
integer, parameter jprb
Definition: parkind1.F90:32
subroutine flag_update(DIO, DUO, ONOWRITE_CANOPY, OPGD, OPROVAR_TO_DIAG, OSELE
Definition: flag_update.F90:8
logical lhook
Definition: yomhook.F90:15