Skip to content

Commit

Permalink
Undid the last commit #4021 since it will make several models in the …
Browse files Browse the repository at this point in the history
…standard library to fail. This because there will be more equations then variables generated.

(see Note: 4021 in Inst.mo) 

git-svn-id: https://openmodelica.org/svn/OpenModelica/branches/MathCoreOSMC@4022 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Björn Zachrisson committed May 8, 2009
1 parent 7305aad commit 22a76d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Compiler/Inst.mo
Expand Up @@ -5273,9 +5273,15 @@ algorithm
start = instStartBindingExp(mod, ty, idxs_1);
(cache,dae_var_attr) = instDaeVariableAttributes(cache,env, mod, ty, {});
dae3 = daeDeclare(cr, ci_state, ty, SCode.ATTR({},flowPrefix,streamPrefix,acc,vt,dir),prot, SOME(e), inst_dims, start, dae_var_attr, comment,io,finalPrefix,false);
/*
BZ: Removed due to errors in many models.
This will generate a larget set of equations then intended.
(Checked in 4021 as a bug fix for http://openmodelica.ida.liu.se:8080/cb/issue/1098)

dae2 = instModEquation(cr, ty, mod, impl);
dae2 = Util.if_(Types.isComplexType(ty), dae2,{});
dae3 = listAppend(dae2,dae3);
dae3 = listAppend(dae2,dae3);
*/
dae = listAppend(dae1_1, dae3);
then
(cache,env_1,dae,csets_1,ty,graph);
Expand Down

0 comments on commit 22a76d3

Please sign in to comment.