Removed a println

This commit is contained in:
Connor Johnstone
2023-03-15 17:37:54 -06:00
parent 98ea87adcb
commit 85755cf31c
2 changed files with 2 additions and 2 deletions

View File

@@ -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| {