Skip to content

Commit

Permalink
- use fixed=true for DUMMY_STATE variables for residual equations
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7350 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 10, 2010
1 parent 275fe12 commit 03d4f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/SimCode.mo
Expand Up @@ -6047,7 +6047,7 @@ algorithm
((v,BackendDAE.EQUATION(e,startv,source)::eqns));
case (((v as BackendDAE.VAR(varName = cr,varKind = BackendDAE.DUMMY_STATE(),values = attr,source=source)),eqns)) /* add equations for variables with fixed = true */
equation
false = BackendVariable.varFixed(v);
true = BackendVariable.varFixed(v);
true = DAEUtil.hasStartAttr(attr);
//startv = DAEUtil.getStartAttr(attr);
e = Expression.crefExp(cr);
Expand Down

0 comments on commit 03d4f87

Please sign in to comment.