Skip to content

Commit 87280ef

Browse files
committed
towards BifurcationKit @0.4
1 parent 295edb6 commit 87280ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ MTKLabelledArraysExt = "LabelledArrays"
7272
[compat]
7373
AbstractTrees = "0.3, 0.4"
7474
ArrayInterface = "6, 7"
75-
BifurcationKit = "0.3"
75+
BifurcationKit = "0.3, 0.4"
7676
BlockArrays = "1.1"
7777
ChainRulesCore = "1"
7878
Combinatorics = "1"

ext/MTKBifurcationKitExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function BifurcationKit.BifurcationProblem(nsys::NonlinearSystem,
113113
# If the plot var is a normal state.
114114
if any(isequal(plot_var, var) for var in unknowns(nsys))
115115
plot_idx = findfirst(isequal(plot_var), unknowns(nsys))
116-
record_from_solution = (x, p) -> x[plot_idx]
116+
record_from_solution = (x, p; k...) -> x[plot_idx]
117117

118118
# If the plot var is an observed state.
119119
elseif any(isequal(plot_var, eq.lhs) for eq in observed(nsys))
@@ -132,7 +132,7 @@ function BifurcationKit.BifurcationProblem(nsys::NonlinearSystem,
132132
return BifurcationKit.BifurcationProblem(F,
133133
u0_bif_vals,
134134
p_vals,
135-
(@lens _[bif_idx]),
135+
(BifurcationKit.@optic _[bif_idx]),
136136
args...;
137137
record_from_solution = record_from_solution,
138138
J = J,

0 commit comments

Comments
 (0)