Skip to content

Commit

Permalink
Fix array types for PartFn (fixes Modelica.Media.Examples.ReferenceAi…
Browse files Browse the repository at this point in the history
…r.Inverse_sh_TX)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17338 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 23, 2013
1 parent 6358903 commit 2e02fa9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/BackEnd/PartFn.mo
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,12 @@ algorithm
Ident i;
DAE.Type ty;
DAE.Var res;
case(DAE.VAR(componentRef = cref,ty = ty))
DAE.InstDims dims;
case(DAE.VAR(componentRef = cref,ty = ty,dims = dims))
equation
i = ComponentReference.printComponentRefStr(cref);
// The full type needs the dimensions
ty = Types.makeArraySubscripts(ty,dims);
// TODO: FIXME: binding?
res = DAE.TYPES_VAR(i,DAE.ATTR(SCode.POTENTIAL(),SCode.NON_PARALLEL(), SCode.VAR(),Absyn.INPUT(),Absyn.NOT_INNER_OUTER(),SCode.PUBLIC()),ty,DAE.UNBOUND(),NONE());
then
Expand Down

0 comments on commit 2e02fa9

Please sign in to comment.