Our integrator should be a trait with a step method and perhaps an integrate method that returns a generator, or an integrate_to that takes an end time. Perhaps the timestep, etc. should then be values in the types implementing the integrator, instead of parameters of the methods? Or should we have that configuration be part of the trait still?
Our integrator should be a trait with a
step
method and perhaps anintegrate
method that returns a generator, or anintegrate_to
that takes an end time. Perhaps the timestep, etc. should then be values in the types implementing the integrator, instead of parameters of the methods? Or should we have that configuration be part of the trait still?