Skip to content

Commit 75d2645

Browse files
author
Filippo Donida
committed
When dumping array, vector or matrix variables the index of the variable was not printed. Fixed.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3988 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 416d039 commit 75d2645

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Compiler/XMLDump.mo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,7 @@ See dumpVariable for more details on the XML output.
30643064
algorithm
30653065
_:=
30663066
matchcontinue (inVarLst,inInteger,addMathMLCode)
3067+
30673068
local
30683069
String varnostr,dirstr,str,path_str,comment_str,s,indx_str;
30693070
list<String> paths_lst,path_strs;
@@ -3100,7 +3101,7 @@ algorithm
31003101
flow_ = flow_,
31013102
stream_ = stream_)) :: xs),varno,addMMLCode)
31023103
equation
3103-
dumpVariable(intString(varno),Exp.crefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),
3104+
dumpVariable(intString(varno),Exp.printComponentRefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),
31043105
intString(indx),Exp.crefStr(old_name),Util.boolString(DAELow.varFixed(v)),dumpFlowStr(flow_),
31053106
dumpStreamStr(stream_),unparseCommentOptionNoAnnotation(comment));
31063107
dumpBindValueExpression(e,b,addMMLCode);
@@ -3168,7 +3169,7 @@ algorithm
31683169
flow_ = flow_,
31693170
stream_ = stream_)) :: xs),crefIdxLstArr,strIdxLstArr,varno,addMMLCode)
31703171
equation
3171-
dumpVariable(intString(varno),Exp.crefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),intString(indx),
3172+
dumpVariable(intString(varno),Exp.printComponentRefStr(cr),dumpKind(kind),dumpDirectionStr(dir),dumpTypeStr(var_type),intString(indx),
31723173
Exp.crefStr(old_name),Util.boolString(DAELow.varFixed(v)),dumpFlowStr(flow_),dumpStreamStr(stream_),
31733174
Dump.unparseCommentOption(comment));
31743175
dumpBindValueExpression(e,b,addMMLCode);

0 commit comments

Comments
 (0)