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

Discrete sub-solutions for DEs #901

Open
YingboMa opened this issue Apr 3, 2023 · 0 comments
Open

Discrete sub-solutions for DEs #901

YingboMa opened this issue Apr 3, 2023 · 0 comments

Comments

@YingboMa
Copy link
Member

YingboMa commented Apr 3, 2023

MTK models with synchronization and discrete subsystems need to store discrete solutions to be able to reconstruct the entire dynamics. It's easy to add a subsolutions field in ODESolution, but how should we attach the sub-solutions after __solve? Currently, MTK generates code that pushes the discrete states into a saving vector inside periodic callbacks. Should we add a higher order callback function like solution_post_processing after __solve in DiffEqBase to attach the sub-solutions?

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