﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3261	Cannot override array variables	crupp@…	Adrian Pop	"The command line option -override and -overrideFile do not allow overrides of array variables. This is because the override string is tokenized by "","", which also catches the array dimension separator. This happens at simulation_input_xml.cpp:838.

The same problem happens with the -output option in solver_main.c:773. Could this happen anywhere else?

A quick fix would be to use a different separator character that would never exist in a variable name such as "";"" and thereby avoid this issue.

Here is an example that reproduces the problem:
{{{
model overrideBug
  parameter Real[2,2] A = {{1,2},{3,4}};
  Real[2] x(start={1,2});
  Real[2] y;
equation
  y = der(x);
  der(y) = A * x;
end overrideBug;
}}}

Output:
{{{
./overrideBug.exe -override A[1,1]=0
stdout            | warning | simulation_input_xml.cpp: override variable name not found in model: 1]
stdout            | warning | simulation_input_xml.cpp: override variable name not found in model: A[1
}}}"	defect	closed	high	1.9.3	Run-time	trunk	fixed		
