Opened 9 years ago
Last modified 7 years ago
#3934 new defect
Support the vendor annotations in translateModel and simulation runtime — at Version 2
Reported by: | Adrian Pop | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Interactive Environment | Version: | |
Keywords: | Cc: |
Description (last modified by )
We should add support for vendor annotations in translateModel:
Flags fX
has the form -name
or -name=value
.
Annotation in the model:
__OpenModelica_simulationFlags=(f1 f2 f3 f4)
Flags in translateModel
// override f2 from __OpenModelica_simulationFlags translateModel(M, simflags="f2 f5 f6");
Flags on command line:
# override f3 from __OpenModelica_simulationFlags # override f6 from translateModel ./M -f3 f6 f7
The flags from translateModel
should override __OpenModelica_simulationFlags
and should be put in the M_init.xml
file each flag in its own element under <DefaultExperiment>
.
Example M_init.xml
file:
<DefaultExperiment stopTime="0" endTime="1"> <SimFlag>f1</SimFlag> <SimFlag>f2</SimFlag> <SimFlag>f3</SimFlag> <SimFlag>f4</SimFlag> <SimFlag>f5</SimFlag> <SimFlag>f6</SimFlag> </DefaultExperiment>
The simulation runtime (M.exe) will read the simulation flags from M_init.xml
and apply them before applying the flags given on the command line.
See also ticket: #3488
Change History (2)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Summary: | Support the vendor annotations in translateModel and simualtion runtime → Support the vendor annotations in translateModel and simulation runtime |
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.