Skip to content

Commit

Permalink
Fixed bug with input variables on top level, see InputOutput.mo teste…
Browse files Browse the repository at this point in the history
…d in simulation3.mos

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2549 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Sep 28, 2006
1 parent f56192a commit 4bb6f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCodegen.mo
Expand Up @@ -2203,7 +2203,7 @@ algorithm
i_str = intString(i);
i_1 = i + 1;
cr_str = Exp.printComponentRefStr(cr);
assign_str = Util.stringAppendList({cr_str," = in_x[",i_str,"];"});
assign_str = Util.stringAppendList({cr_str," = localData->inputVars[",i_str,"];"});
res = generateInputFunctionCode2(rest, i_1);
then
(assign_str :: res);
Expand Down

0 comments on commit 4bb6f1b

Please sign in to comment.