SURFEX v8.1
General documentation of Surfex
stores_hvac_autosize.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 stores_hvac_autosize (B, BOP, DTB)
7 ! #############################################################
8 !
9 !!**** *STORES_HVAC_AUTOSIZE* - routine to store the HVAC system
10 !! characteristics for further use
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 !! V. Masson *Meteo France*
32 !!
33 !! MODIFICATIONS
34 !! -------------
35 !! Original 05/2012
36 !-------------------------------------------------------------------------------
37 !
38 !* 0. DECLARATIONS
39 ! ------------
40 !
41 USE modd_bem_n, ONLY : bem_t
43 USE modd_data_bem_n, ONLY : data_bem_t
44 !
45 USE modi_abor1_sfx
46 !
47 USE yomhook ,ONLY : lhook, dr_hook
48 USE parkind1 ,ONLY : jprb
49 !
50 IMPLICIT NONE
51 !
52 !* 0.1 Declarations of arguments
53 ! -------------------------
54 !
55 !
56 !* 0.2 Declarations of local variables
57 ! -------------------------------
58 !
59 !
60 TYPE(bem_t), INTENT(INOUT) :: B
61 TYPE(bem_options_t), INTENT(INOUT) :: BOP
62 TYPE(data_bem_t), INTENT(INOUT) :: DTB
63 !
64 INTEGER :: IL
65 !
66 REAL(KIND=JPRB) :: ZHOOK_HANDLE
67 !-------------------------------------------------------------------------------
68 !
69 ! Initialisation for IO
70 !
71 
72 IF (lhook) CALL dr_hook('STORES_HVAC_AUTOSIZE',0,zhook_handle)
73 !
74 !-------------------------------------------------------------------------------
75 !
76 !* 8. Building HVAC automatic sizing:
77 ! -------------------------------
78 !* stores the real systems characteristics in physiographic data
79 ! for further use
80 !
81 il = SIZE(b%XM_SYS_RAT)
82 !
83 dtb%LDATA_M_SYS_RAT = .true.
84 ALLOCATE(dtb%XPAR_M_SYS_RAT(il))
85 dtb%XPAR_M_SYS_RAT = b%XM_SYS_RAT
86 !
87 dtb%LDATA_CAP_SYS_RAT = .true.
88 ALLOCATE(dtb%XPAR_CAP_SYS_RAT(il))
89 dtb%XPAR_CAP_SYS_RAT = b%XCAP_SYS_RAT
90 !
91 dtb%LDATA_CAP_SYS_HEAT = .true.
92 ALLOCATE(dtb%XPAR_CAP_SYS_HEAT(il))
93 dtb%XPAR_CAP_SYS_HEAT = b%XCAP_SYS_HEAT
94 !
95 bop%LAUTOSIZE = .false.
96 dtb%LDATA_T_SIZE_MIN = .false.
97 dtb%LDATA_T_SIZE_MAX = .false.
98 !
99 !-------------------------------------------------------------------------------
100 !
101 !
102 IF (lhook) CALL dr_hook('STORES_HVAC_AUTOSIZE',1,zhook_handle)
103 !
104 !
105 END SUBROUTINE stores_hvac_autosize
subroutine stores_hvac_autosize(B, BOP, DTB)
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15