Skip to content

Commit 850e616

Browse files
author
Willi Braun
committed
- fixed BackendDAEUtil.isDiscreteExp for initial() condition
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14381 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent d57b2d7 commit 850e616

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Compiler/BackEnd/BackendDAEUtil.mo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,6 +1516,10 @@ algorithm
15161516
equation
15171517
b = Util.getOptionOrDefault(blst,true);
15181518
then ((e,false,(vars,knvars,SOME(b))));
1519+
case (((e as DAE.CALL(path = Absyn.IDENT(name = "initial")),(vars,knvars,blst))))
1520+
equation
1521+
b = Util.getOptionOrDefault(blst,true);
1522+
then ((e,false,(vars,knvars,SOME(b))));
15191523
/*
15201524
This cases are wrong because of Modelica Specification:
15211525

0 commit comments

Comments
 (0)