Skip to content

Commit

Permalink
- Fix previous commit.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16100 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed May 21, 2013
1 parent 77e2659 commit c4b9526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Compiler/BackEnd/ResidualCmp.mo
Expand Up @@ -62,6 +62,7 @@ protected import DAEUtil;
protected import Debug;
protected import Error;
protected import Expression;
protected import ExpressionDump;
protected import List;
protected import PartFn;
protected import SCode;
Expand Down Expand Up @@ -609,7 +610,7 @@ algorithm
nomVal = NONE();
type_ = tp;
arrayCref = SimCodeUtil.getArrayCref(cr);
numArrayElement=SimCodeUtil.arraydim1(inst_dims);
numArrayElement = List.map(inst_dims, ExpressionDump.subscriptString);
kind = daeKindtoBackendDAEKind(daekind);
then
SimCode.SIMVAR(cr, kind, commentStr, unit, displayUnit, -1 /* use -1 to get an error in simulation if something failed */,
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/SimCodeUtil.mo
Expand Up @@ -8759,7 +8759,7 @@ algorithm
arrayCref = getArrayCref(cr);
aliasvar = getAliasVar(dlowVar, optAliasVars);
caus = getCausality(dlowVar, vars);
numArrayElement = List.map(inst_dims, Expression.subscriptString);
numArrayElement = List.map(inst_dims, ExpressionDump.subscriptString);
// print("name: " +& ComponentReference.printComponentRefStr(cr) +& "indx: " +& intString(indx) +& "\n");
then
SimCode.SIMVAR(cr, kind, commentStr, unit, displayUnit, -1 /* use -1 to get an error in simulation if something failed */,
Expand Down

0 comments on commit c4b9526

Please sign in to comment.