Skip to content

Commit

Permalink
Update bdf.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhovd authored Mar 23, 2024
1 parent 27ad5d4 commit 0a615fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ode_solver/bdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,7 @@ where
}

fn set_problem(&mut self, state: &mut OdeSolverState<Eqn::M>, problem: &OdeSolverProblem<Eqn>) {
let problem_clone = problem.clone();
self.ode_problem = Some(problem_clone);
let problem = self.ode_problem.as_ref().unwrap();
self.ode_problem = Some(problem.clone());
let nstates = problem.eqn.nstates();
self.order = 1usize;
self.n_equal_steps = 0;
Expand Down

0 comments on commit 0a615fb

Please sign in to comment.