Skip to content

Add mutable System trait#27

Draft
Tiggax wants to merge 3 commits intosrenevey:mainfrom
Tiggax:add-mut-system
Draft

Add mutable System trait#27
Tiggax wants to merge 3 commits intosrenevey:mainfrom
Tiggax:add-mut-system

Conversation

@Tiggax
Copy link

@Tiggax Tiggax commented Apr 20, 2024

I have created a simple mutable system implementation similar to the suggestion talked in #16.
As oposed to creating a seperate trait, this one just adds a function to the System trait, an the model then uses the mut_integrate as opposed to integrate function to use it.

The System trait implements an aditional mut_system function, and currently only RK4 model has it added.
If the impementation is desirable i might add the other two implementations.

Usage is shown in the examples/bioractor.rs i added.

If this change is favorable, i shall add the other integration options, and add tests.

Any suggestions/ critics are welcome :)

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