Skip to content

Use simflags string for simulation options instead of setSimulationOp…#1

Open
BartgeierXC wants to merge 1 commit into
mainfrom
FIX-simulation_parameter_modelica
Open

Use simflags string for simulation options instead of setSimulationOp…#1
BartgeierXC wants to merge 1 commit into
mainfrom
FIX-simulation_parameter_modelica

Conversation

@BartgeierXC
Copy link
Copy Markdown
Collaborator

…tions

With the recent OpenModelica update to v1.26.2, setSimulationOptions doesn't recognice timing parameters any more. Introduced fix:

Replace calls to setSimulationOptions with a constructed simflags string that includes timing parameters (-startTime, -stopTime, -stepSize, -tolerance) and appends any existing flags. Applied to run_simulation_in_order and simulate_model_worker so model.simulate is invoked with simflags=sim_options (and resultfile where applicable). This centralizes simulation options into the simflags parameter and removes the previous setSimulationOptions usage.

…tions

With the recent OpenModelica update to v1.26.2, setSimulationOptions doesn't recognice timing parameters any more. Introduced fix:

Replace calls to setSimulationOptions with a constructed simflags string that includes timing parameters (-startTime, -stopTime, -stepSize, -tolerance) and appends any existing flags. Applied to run_simulation_in_order and simulate_model_worker so model.simulate is invoked with simflags=sim_options (and resultfile where applicable). This centralizes simulation options into the simflags parameter and removes the previous setSimulationOptions usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant