﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2027	linspace() does not work with input defined via parameters	mikaelf@…	Martin Sjölund	"linspace(x1,x2,n) only works if the input is given by numerical values e.g. linspace(0,100,5) and not when the input is given by parameters (se code snip below):

{{{
model linspaceTest
  Real points[5,2];
  parameter Integer pointNum = 5;
  parameter Real size[2] = {100,100};
equation
  points[:,1]=linspace(0,size[1],pointNum);
  points[:,2] = fill(size[2], pointNum);
end linspaceTest;
}}}

which fails with following error message:

{{{
Error: Array equation has unknown size in {points[1,1], points[2,1], points[3,1], points[4,1], points[5,1]}=array(size[1] * /*Real*/(i + -1) / /*Real*/(pointNum + -1) for i in 1:pointNum)
[linspaceTestTotal.mo:6:3-6:47:writable] Error: Type mismatch in equation {points[1,1], points[2,1], points[3,1], points[4,1], points[5,1]}=array(size[1] * /*Real*/(i + -1) / /*Real*/(pointNum + -1) for i in 1:pointNum) of type Real[5]=Real[:]
}}}"	defect	closed	high	1.9.0	Frontend	1.9.0Beta	fixed		
