Opened 4 years ago
Last modified 4 years ago
#6197 closed defect
Issues with code generation in the Buildings library — at Version 4
Reported by: | Francesco Casella | Owned by: | Mahder Alemseged Gebremedhin |
---|---|---|---|
Priority: | critical | Milestone: | 1.18.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | Per Östlund |
Description (last modified by )
Please check Buildings.Examples.ChillerPlant.DataCenterContinuousTimeControl. The C compilation fails with error messages such as
error: used type 'boolean_array' (aka 'struct base_array_s') where arithmetic or pointer type is required
I have no idea what this could be due to, please investigate.
Change History (4)
comment:1 by , 4 years ago
Status: | new → accepted |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
comment:4 by , 4 years ago
Cc: | added |
---|---|
Description: | modified (diff) |
@perost suggests that this could also be due to the frontend not passing that information in the right way to the backend.
The OF report shows the code generation stopping during the backend, but this could be due to other unrelated shortcomings of the OF.
We should investigate how equations involving parameters such as cooCoi.ele[2].preDro2.m_flow_turbulent
, that show up in the problematic C code, are handled by both the NF and the OF
Probably related to functions with record inputs. Affects a large number of models in the Buildings library