Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#2911 closed defect (fixed)

Error caused by utilizing array " Compilation process exited with code 2"

Reported by: MJ Owned by: MJ
Priority: high Milestone: 1.9.4
Component: Code Generation Version: trunk
Keywords: Array Cc: Willi Braun

Description

model Q

parameter Real[2, 1] ini_0(each fixed = false);
parameter Real a(fixed = false);
parameter Real b(fixed = false);

function ini0

input Real A;
input Real B;
output Real[2, 1] ini_0;

algorithm

ini_0 := [A; B];

end ini0;

initial algorithm

ini_0 := ini0(1, 2);
a := ini_0[1, 1];
b := ini_0[2, 1];

end Q;

Change History (4)

comment:1 by Martin Sjölund, 10 years ago

Component: UnknownCode Generation

comment:2 by Willi Braun, 10 years ago

Cc: Willi Braun added; wbraun@… removed
Resolution: fixed
Status: newclosed

comment:3 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:4 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.