Skip to content

Commit

Permalink
- revert r23613, because it breaks initialization of parameters in so…
Browse files Browse the repository at this point in the history
…me cases

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23652 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Dec 3, 2014
1 parent 344fbe7 commit e701ae7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Compiler/BackEnd/Initialization.mo
Expand Up @@ -2052,7 +2052,7 @@ algorithm
DAE.InstDims arryDim;
Option<DAE.Exp> startValue;
DAE.Exp startValue_;
DAE.Exp startExp, bindExp, crefExp, e;
DAE.Exp startExp, bindExp, crefExp;
BackendDAE.VarKind varKind;
HashSet.HashSet hs;
String s, str, sv;
Expand Down Expand Up @@ -2140,9 +2140,6 @@ algorithm
case (var as BackendDAE.VAR(varName=cr, varKind=BackendDAE.PARAM(), bindExp=NONE()), (vars, fixvars, eqns, hs)) equation
true = BackendVariable.varFixed(var);
startExp = BackendVariable.varStartValueType(var);
e = Expression.crefExp(cr);
ty = Expression.typeof(e);
startExp = Expression.makePureBuiltinCall("$_start", {e}, ty);
var = BackendVariable.setVarKind(var, BackendDAE.VARIABLE());
var = BackendVariable.setBindExp(var, SOME(startExp));
var = BackendVariable.setVarFixed(var, true);
Expand Down

0 comments on commit e701ae7

Please sign in to comment.