Skip to content

Commit f0ec206

Browse files
author
Jens Frenkel
committed
- lower enumerations to discrete vars like integers
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11334 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 8d091bc commit f0ec206

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Compiler/BackEnd/BackendDAECreate.mo

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,18 @@ algorithm
760760
failure(BackendVariable.topLevelInput(cr, dir, flowPrefix));
761761
then
762762
(BackendDAE.DISCRETE(),states);
763+
764+
case (DAE.VARIABLE(),DAE.T_ENUMERATION(names = _),cr,dir,flowPrefix,_,states,_)
765+
equation
766+
failure(BackendVariable.topLevelInput(cr, dir, flowPrefix));
767+
then
768+
(BackendDAE.DISCRETE(),states);
769+
770+
case (DAE.DISCRETE(),DAE.T_ENUMERATION(names = _),cr,dir,flowPrefix,_,states,_)
771+
equation
772+
failure(BackendVariable.topLevelInput(cr, dir, flowPrefix));
773+
then
774+
(BackendDAE.DISCRETE(),states);
763775

764776
case (DAE.VARIABLE(),_,cr,dir,flowPrefix,_,states,_)
765777
equation

0 commit comments

Comments
 (0)