Skip to content

Commit be393fd

Browse files
Merge pull request #3102 from rveltz/master
towards BifurcationKit @0.4
2 parents 9b439b7 + 877cf03 commit be393fd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ MTKLabelledArraysExt = "LabelledArrays"
7575
[compat]
7676
AbstractTrees = "0.3, 0.4"
7777
ArrayInterface = "6, 7"
78-
BifurcationKit = "0.3"
78+
BifurcationKit = "0.4"
7979
BlockArrays = "1.1"
8080
ChainRulesCore = "1"
8181
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,

test/extensions/bifurcationkit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ let
3636
bprob_BK = BifurcationProblem(f_BK,
3737
[1.0, 1.0],
3838
[-1.0, 1.0],
39-
(@lens _[1]);
40-
record_from_solution = (x, p) -> x[1])
39+
(BifurcationKit.@optic _[1]);
40+
record_from_solution = (x, p; k...) -> x[1])
4141
bif_dia_BK = bifurcationdiagram(bprob_BK,
4242
PALC(),
4343
2,

0 commit comments

Comments
 (0)