Skip to content

Commit 4b0f335

Browse files
committed
up
1 parent 71c82fd commit 4b0f335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/model_simulation/ode_simulation_performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ solve(oprob, Tsit5())
7171
nothing # hide
7272
```
7373
If no solver argument is provided to `solve`, and the `OrdinaryDiffEqDefault` sub-library or meta `OrdinaryDiffEq` library are loaded, then one is automatically selected:
74-
```@example
74+
```@example ode_simulation_performance_2
7575
using OrdinaryDiffEqDefault
7676
solve(oprob)
7777
nothing # hide
@@ -136,7 +136,7 @@ nothing # hide
136136
### [Linear solver selection](@id ode_simulation_performance_symbolic_jacobian_linear_solver)
137137
When implicit solvers use e.g. the Newton-Raphson method to (at each simulation time step) solve a (typically non-linear) equation, they actually solve a linearised version of this equation. For this, they use a linear solver, the choice of which can impact performance. To specify one, we use the `linsolve` option (given to the solver function, *not* the `solve` command). E.g. to use the `KLUFactorization` linear solver (which requires loading the [LinearSolve.jl](https://github.com/SciML/LinearSolve.jl) package) we run
138138
```@example ode_simulation_performance_3
139-
using LinearSolve
139+
using LinearSolve, OrdinaryDiffEqRosenbrock
140140
solve(oprob, Rodas5P(linsolve = KLUFactorization()))
141141
nothing # hide
142142
```

0 commit comments

Comments
 (0)