ode-solvers
ode-solvers copied to clipboard
Add mutable System trait
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 :)