#4759 closed defect (fixed)
Issue with code genereated from the NF regarding when conditions
| Reported by: | Francesco Casella | Owned by: | Per Östlund |
|---|---|---|---|
| Priority: | high | Milestone: | 2.0.0 |
| Component: | New Instantiation | Version: | |
| Keywords: | Cc: |
Description
Please check Modelica.Blocks.Examples.Interaction1. The following error occurs:
Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.o Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.c
Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.c:237:69: error: assigning to 'modelica_boolean' (aka 'signed char') from incompatible type 'boolean_array' (aka 'struct base_array_s')
data->localData[0]->booleanVars[3] /* $whenCondition4 DISCRETE */ = tmp14;
^ ~~~~~
There is probably something wrong in the NF-generated DAE structure concerning conditions in when statements, that breaks the template later on.
Change History (3)
comment:1 by , 8 years ago
| Component: | *unknown* → New Instantiation |
|---|---|
| Milestone: | Future → 2.0.0 |
| Owner: | changed from to |
comment:2 by , 8 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 8 years ago
The model now fails because of this error
Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1_functions.c:(.text+0x119): undefined reference to `rem'
which is of course a different issue.
Note:
See TracTickets
for help on using tickets.

Fixed in 9523ebe.