Opened 8 years ago
Closed 8 years ago
#4812 closed defect (invalid)
__OpenModelica_simulationFlags annotation should also support flags without a value
| Reported by: | Francesco Casella | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | high | Milestone: | 1.13.0 |
| Component: | OMEdit | Version: | |
| Keywords: | Cc: | Willi Braun |
Description
As far as I understand (see also #4642), the __OpenModelica_simulationFlags currently accepts a comma-separated list of flag = "value" arguments. The problem is that there are many flags which do not have a value, e.g., -cpu, -daeMode. Currently, the annotation __OpenModelica_simulationFlags(daeMode) produces a flag daeMode= which is incorrect and causes the simulation to hang, see #4810.
For flag without a value, the = sign should be omitted when generating the option string for the simulation executable.
Change History (2)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
The documentation is available now https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/omedit.html#openmodelica-simulationflags-annotation

The flags without a value are already supported via a special syntax i.e.,
cpu=(), daeMode=().I have written a small documentation about OpenModelica_simulationFlags (https://github.com/OpenModelica/OpenModelica-doc/pull/72) which should be up soon.