Skip to content

Commit

Permalink
optimize iterate_from_two_points to improve dynamic dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Sep 1, 2024
1 parent 8e676a2 commit 8009c1f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Continuation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,10 @@ function iterate_from_two_points(it::ContIterable,
ds = it.contparams.ds
z = BorderedArray(_copy(u₁), p₁)
# compute eigenvalues to get the type. Necessary to give a ContResult
eigvals, eigvecs = (nothing, nothing)
cveig::Bool = true
if compute_eigenelements(it)
eigvals, eigvecs, cveig, = compute_eigenvalues(it, (z = z,), u₀, getparams(it.prob), it.contparams.nev)
if ~save_eigenvectors(it)
eigvecs = nothing
end
else
eigvals, eigvecs = nothing, nothing
end

# compute event value and store it into state
Expand Down

0 comments on commit 8009c1f

Please sign in to comment.