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

Support SciMLStructure Interface #233

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

lukem12345
Copy link
Member

@lukem12345 lukem12345 commented May 31, 2024

Currently, performing sensitivity analysis on Decapodes simulations requires edits to generated simulation code.
We should use the SciMLStructure.jl interface.

We cannot use the MTKParameters struct which already supports the interface without adding generated code that does manual buffer management.

So, this PR adds support for passing parameters as the NamedTuples that we normally use, wrapping values to mark them as "tunable" or "constant".

If the overhead of making NamedTuples is found to be too high, then we can switch to manually managing our buffers.

Relatedly, it is probably more performant to define a struct that silos Tunables into their own field, Constants into their own field, and so on.

@lukem12345 lukem12345 added the enhancement New feature or request label May 31, 2024
@lukem12345 lukem12345 self-assigned this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant