Skip to content

Commit 6cf7d65

Browse files
ErikQQYChrisRackauckas
authored andcommitted
Correct usage of BVPJacobianAlgorithm
1 parent 5c07c2d commit 6cf7d65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/src/tutorials/bvp_example.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ end
132132
u0 = [1.0, 1.0, 1.0]
133133
tspan = (0.0, 1.0)
134134
prob = SecondOrderBVProblem(f!, bc!, u0, tspan)
135-
sol = solve(prob, MIRKN4(; jac_alg = BVPJacobianAlgorithm(diffmode = AutoForwardDiff())), dt = 0.01)
135+
sol = solve(prob, MIRKN4(; jac_alg = BVPJacobianAlgorithm(AutoForwardDiff())), dt = 0.01)
136136
```
137137

138138
## Example 3: Semi-Explicit Boundary Value Differential-Algebraic Equations
@@ -173,5 +173,5 @@ u0 = [0.0, 0.0, 0.0, 0.0]
173173
tspan = (0.0, 1.0)
174174
fun = BVPFunction(f!, bc!, mass_matrix = [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 0])
175175
prob = BVProblem(fun, u0, tspan)
176-
sol = solve(prob, Ascher4(zeta = [0.0, 0.0, 1.0], jac_alg = BVPJacobianAlgorithm(diffmode = AutoForwardDiff())), dt = 0.01)
176+
sol = solve(prob, Ascher4(zeta = [0.0, 0.0, 1.0], jac_alg = BVPJacobianAlgorithm(AutoForwardDiff())), dt = 0.01)
177177
```

0 commit comments

Comments
 (0)