SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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 !
42 !
43 !
44 USE modd_bem_n, ONLY : bem_t
46 USE modd_data_bem_n, ONLY : data_bem_t
47 !
48 USE modi_abor1_sfx
49 !
50 USE yomhook ,ONLY : lhook, dr_hook
51 USE parkind1 ,ONLY : jprb
52 !
53 IMPLICIT NONE
54 !
55 !* 0.1 Declarations of arguments
56 ! -------------------------
57 !
58 !
59 !* 0.2 Declarations of local variables
60 ! -------------------------------
61 !
62 !
63 TYPE(bem_t), INTENT(INOUT) :: b
64 TYPE(bem_options_t), INTENT(INOUT) :: bop
65 TYPE(data_bem_t), INTENT(INOUT) :: dtb
66 !
67 INTEGER :: il
68 !
69 REAL(KIND=JPRB) :: zhook_handle
70 !-------------------------------------------------------------------------------
71 !
72 ! Initialisation for IO
73 !
74 
75 IF (lhook) CALL dr_hook('STORES_HVAC_AUTOSIZE',0,zhook_handle)
76 !
77 !-------------------------------------------------------------------------------
78 !
79 !* 8. Building HVAC automatic sizing:
80 ! -------------------------------
81 !* stores the real systems characteristics in physiographic data
82 ! for further use
83 !
84 il = SIZE(b%CUR%XM_SYS_RAT)
85 !
86 dtb%LDATA_M_SYS_RAT = .true.
87 ALLOCATE(dtb%XPAR_M_SYS_RAT(il))
88 dtb%XPAR_M_SYS_RAT = b%CUR%XM_SYS_RAT
89 !
90 dtb%LDATA_CAP_SYS_RAT = .true.
91 ALLOCATE(dtb%XPAR_CAP_SYS_RAT(il))
92 dtb%XPAR_CAP_SYS_RAT = b%CUR%XCAP_SYS_RAT
93 !
94 dtb%LDATA_CAP_SYS_HEAT = .true.
95 ALLOCATE(dtb%XPAR_CAP_SYS_HEAT(il))
96 dtb%XPAR_CAP_SYS_HEAT = b%CUR%XCAP_SYS_HEAT
97 !
98 bop%LAUTOSIZE = .false.
99 dtb%LDATA_T_SIZE_MIN = .false.
100 dtb%LDATA_T_SIZE_MAX = .false.
101 !
102 !-------------------------------------------------------------------------------
103 !
104 !
105 IF (lhook) CALL dr_hook('STORES_HVAC_AUTOSIZE',1,zhook_handle)
106 !
107 !
108 END SUBROUTINE stores_hvac_autosize
subroutine stores_hvac_autosize(B, BOP, DTB)