Skip to content

Commit b0c2480

Browse files
Update Henon-Heiles_energy_conservation_benchmark.jmd
1 parent 014a631 commit b0c2480

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

benchmarks/DynamicalODE/Henon-Heiles_energy_conservation_benchmark.jmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function custom_manifold_jacobian(u, params)
7070

7171
J[1, 1] = 1.0
7272
J[2, 2] = 1.0
73-
J[3, 3] = 1 + 2 * q_2
73+
J[3, 3] = 1 + 2 * q2
7474
J[3, 4] = 2 * q1
7575
J[4, 3] = 2 * q1
7676
J[4, 4] = 1 - 4 * q2
@@ -83,7 +83,7 @@ function g(resid, u, p)
8383
resid[2:4] .= 0
8484
end
8585

86-
const cb = ManifoldProjection(g, nlopts=Dict(:ftol => 1e-13), manifold_jacobian = custom_manifold_jacobian)
86+
const cb = ManifoldProjection(g, nlopts=Dict(:ftol => 1e-13), manifold_jacobian=custom_manifold_jacobian)
8787
const E = H(iip_p0, iip_q0, nothing)
8888
```
8989

@@ -217,4 +217,4 @@ The benchmarks were performed on a machine with
217217
```julia, echo = false
218218
using SciMLBenchmarks
219219
SciMLBenchmarks.bench_footer(WEAVE_ARGS[:folder],WEAVE_ARGS[:file])
220-
```
220+
```

0 commit comments

Comments
 (0)