Skip to content

Commit

Permalink
optimize jacobian of collocation
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Dec 28, 2024
1 parent 5f26a51 commit 30fa33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/periodicorbit/PeriodicOrbitCollocation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Compute the jacobian of the problem defining the periodic orbits by orthogonal c
(ρD * ∂L[l2, l] - α * L[l2, l] * ρI) .* In
end
# add derivative w.r.t. the period
J[rgNx .+ (l-1)*n, end] .= residual(VF, pj[:,l], pars) .* (-(mesh[j+1]-mesh[j]) / 2)
J[rgNx .+ (l-1)*n, end] .= residual(VF, pj[:,l], pars) .* (-dt)
end
rg = rg .+ m
rgNx = rgNx .+ (m * n)
Expand Down

0 comments on commit 30fa33f

Please sign in to comment.