Skip to content

Commit

Permalink
When dumping array, vector or matrix variables the index of the varia…
Browse files Browse the repository at this point in the history
…ble was not printed. Fixed.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3988 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Filippo Donida committed Apr 1, 2009
1 parent 416d039 commit 75d2645
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/XMLDump.mo
Expand Up @@ -3064,6 +3064,7 @@ See dumpVariable for more details on the XML output.
algorithm
_:=
matchcontinue (inVarLst,inInteger,addMathMLCode)

local
String varnostr,dirstr,str,path_str,comment_str,s,indx_str;
list<String> paths_lst,path_strs;
Expand Down Expand Up @@ -3100,7 +3101,7 @@ algorithm
flow_ = flow_,
stream_ = stream_)) :: xs),varno,addMMLCode)
equation
dumpVariable(intString(varno),Exp.crefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),
dumpVariable(intString(varno),Exp.printComponentRefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),
intString(indx),Exp.crefStr(old_name),Util.boolString(DAELow.varFixed(v)),dumpFlowStr(flow_),
dumpStreamStr(stream_),unparseCommentOptionNoAnnotation(comment));
dumpBindValueExpression(e,b,addMMLCode);
Expand Down Expand Up @@ -3168,7 +3169,7 @@ algorithm
flow_ = flow_,
stream_ = stream_)) :: xs),crefIdxLstArr,strIdxLstArr,varno,addMMLCode)
equation
dumpVariable(intString(varno),Exp.crefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),intString(indx),
dumpVariable(intString(varno),Exp.printComponentRefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),intString(indx),
Exp.crefStr(old_name),Util.boolString(DAELow.varFixed(v)),dumpFlowStr(flow_),dumpStreamStr(stream_),
Dump.unparseCommentOption(comment));
dumpBindValueExpression(e,b,addMMLCode);
Expand Down

0 comments on commit 75d2645

Please sign in to comment.