Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using casadi+integrator in a different thread #3700

Open
doppioandante opened this issue May 18, 2024 · 0 comments
Open

Using casadi+integrator in a different thread #3700

doppioandante opened this issue May 18, 2024 · 0 comments

Comments

@doppioandante
Copy link

doppioandante commented May 18, 2024

Hello, I've developed a DAE system using casadi (only casadi::SX type of terms) and I'm using it for simulation purpose by integrating it using idas (through the casadi interface).
I then wrapped this inside a FMU manually. This is where I found out that the model doesn't give correct results when run in a different thread, which fmpy.gui does and also simulink seems to do. When run through fmpy standard interface, it works correctly.
I would like to give a small reproducer if it's useful, but I wanted to ask beforehand if such a scenario is even supposed to work with casadi? Is the integrator API thread safe?

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

No branches or pull requests

1 participant