Skip to content

Commit 22156b7

Browse files
author
henjo
committed
simplex handles different sized array
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@743 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 8d3c705 commit 22156b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modeq/test_codegen/misc_simplex1.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
function pivot1
3-
input Real b[6,9];
3+
input Real b[:,:];
44
input Integer p;
55
input Integer q;
66

7-
output Real a[6,9];
7+
output Real a[size(b,1),size(b,2)];
88

99
protected
1010
Integer M;
@@ -42,16 +42,16 @@ end pivot1;
4242

4343
function misc_simplex1
4444

45-
input Real matr[6,9];
45+
input Real matr[:,:];
4646

4747

4848

49-
output Real x[8];
49+
output Real x[size(matr,2)-1];
5050
output Real z;
5151

5252

5353
protected
54-
Real a[6,9];
54+
Real a[size(matr,1),size(matr,2)];
5555
Integer M;
5656
Integer N;
5757
output Integer q;

0 commit comments

Comments
 (0)