Removed a println
This commit is contained in:
1 parent
98ea87adcb
commit
85755cf31c
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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| {
|
||||
|
||||
Reference in new issue
Block a user