Updated the way that steps are handled
This commit is contained in:
@@ -24,7 +24,7 @@ fn bench_orbit(c: &mut Criterion) {
|
||||
|
||||
// Integrate
|
||||
let ode = ODE::new(&derivative, 0.0, 86400.0, y0, params);
|
||||
let dp45 = DormandPrince45::new(1e-8_f64, 1e-8_f64);
|
||||
let dp45 = DormandPrince45::new();
|
||||
let controller = PIController::new(0.37, 0.04, 10.0, 0.2, 1000.0, 0.9, 0.01);
|
||||
|
||||
c.bench_function("bench_orbit", |b| {
|
||||
|
||||
@@ -15,7 +15,7 @@ fn bench_simple_1d(c: &mut Criterion) {
|
||||
|
||||
// Set up the problem (ODE, Integrator, Controller, and Callbacks)
|
||||
let ode = ODE::new(&derivative, 0.0, 10.0, y0, params);
|
||||
let dp45 = DormandPrince45::new(1e-1_f64, 1e-6_f64);
|
||||
let dp45 = DormandPrince45::new().a_tol(1e-6).r_tol(1e-6);
|
||||
let controller = PIController::default();
|
||||
|
||||
c.bench_function("bench_simple_1d", |b| {
|
||||
@@ -39,7 +39,7 @@ fn bench_interpolation_1d(c: &mut Criterion) {
|
||||
|
||||
// Set up the problem (ODE, Integrator, Controller, and Callbacks)
|
||||
let ode = ODE::new(&derivative, 0.0, 10.0, y0, params);
|
||||
let dp45 = DormandPrince45::new(1e-1_f64, 1e-6_f64);
|
||||
let dp45 = DormandPrince45::new().a_tol(1e-6).r_tol(1e-6);
|
||||
let controller = PIController::default();
|
||||
|
||||
c.bench_function("bench_interpolation_1d", |b| {
|
||||
|
||||
Reference in New Issue
Block a user