Skip to content

Commit

Permalink
Fixed bug with start value of parameters not translated to DAE.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2686 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Feb 6, 2007
1 parent 6118ccf commit 37b0849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Inst.mo
Expand Up @@ -3990,9 +3990,10 @@ algorithm
dae1_1 = propagateAttributes(dae1, dir,io);
subs = Exp.intSubscripts(idxs_1);
cr = Prefix.prefixCref(pre, Exp.CREF_IDENT(n,subs));
start = instStartBindingExp(mod, ty, idxs_1);
(cache,dae_var_attr) = instDaeVariableAttributes(cache,env, mod, ty, {});
dae3 = daeDeclare(cr, ci_state, ty, SCode.ATTR({},flow_,acc,vt,dir),
SOME(e), inst_dims, NONE, dae_var_attr, comment,io);
SOME(e), inst_dims, start, dae_var_attr, comment,io);
dae = listAppend(dae1_1, dae3);
then
(cache,env_1,dae,csets_1,ty);
Expand Down

0 comments on commit 37b0849

Please sign in to comment.