From 85755cf31c7bcb5f77ab93d7dcc916d04c71fbb2 Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Wed, 15 Mar 2023 17:37:54 -0600 Subject: [PATCH] Removed a println --- readme.md | 3 ++- src/problem.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 6ea1cc2..c777680 100644 --- a/readme.md +++ b/readme.md @@ -30,7 +30,8 @@ and field line tracing: ## To Use -For now, here is a simple example of using the propagator to solve a simple system: +For now, here is a simple example of using the propagator to solve a simple second-order system (the +pendulum problem): ```rust use nalgebra::Vector2; diff --git a/src/problem.rs b/src/problem.rs index 0ca7635..849b9ea 100644 --- a/src/problem.rs +++ b/src/problem.rs @@ -55,7 +55,6 @@ where if self.callbacks.len() > 0 { // Check for events occurring for callback in &self.callbacks { - println!("{}", (callback.event)(self.ode.t, self.ode.y, &self.ode.params) * (callback.event)(self.ode.t + step, new_y, &self.ode.params)); if (callback.event)(self.ode.t, self.ode.y, &self.ode.params) * (callback.event)(self.ode.t + step, new_y, &self.ode.params) < 0.0 { // If the event crossed zero, then find the root let f = |test_t| {