- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Enumeration issue
Page Start Prev 1 Next End
Enumeration issue
Re: Enumeration issue
Feb-12-10 02:10:29
Hi,
First, you should tell us what OpenModelica version you use (and what OS) and maybe also give an example model with your problem.
Enumerations are supported, the only missing thing is using enumeration constants as index in arrays, i.e.:
Real[EnumerationType] x; will generate in the flattened code:
Real x[1];
Real x[2];
...
instead of:
Real x[EnumerationType.enum1];
Real x[EnumerationType.enum2];
...
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
Page Start Prev 1 Next End
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Enumeration issue
There are 0 guests and 0 other users also viewing this topic