Skip to content

Commit dc25bc5

Browse files
author
Jens Frenkel
committed
- fix for last commit, ignore constants
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13970 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent a998770 commit dc25bc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Compiler/BackEnd/SimCodeUtil.mo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6826,6 +6826,10 @@ algorithm
68266826
Integer pos;
68276827
list<BackendDAE.Var> v,kn;
68286828
Boolean b1,b2;
6829+
6830+
// ignore constants
6831+
case ((var as BackendDAE.VAR(varKind=BackendDAE.CONST()),(eqns,v,kn,v1,v2,pos)))
6832+
then ((var,(eqns,v,var1::kn,v1,v2,pos)));
68296833

68306834
case ((var as BackendDAE.VAR(varName=cr, bindExp=SOME(e), source = source),(eqns,v,kn,v1,v2,pos)))
68316835
equation

0 commit comments

Comments
 (0)