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

Make a clear distinction between states and non-states in the data structures #540

Open
SouthEndMusic opened this issue Feb 3, 2025 · 0 comments

Comments

@SouthEndMusic
Copy link
Contributor

Feature type

None

Improvement Description

It is really nice to be able to see at a glance what is being solved for.

Implementation Description

One possibility is the OrdinaryDiffEq (and SciML) standard form:

  • du: The time derivatives of the states
  • u: The states. Can be any vector-like object or a custom struct
  • p: The parameters. Also contains preallocated memory for state-derived variables
  • t: The current simulation time

But separating states and state derived variables in the data structures (and possibly collecting all states into one structure) would already help.

Additional Context

No response

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