Skip to content

Commit e27da93

Browse files
vyuduAayushSabharwal
authored andcommitted
add test
1 parent d48dc57 commit e27da93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/extensions/bifurcationkit.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,12 @@ let
162162
bf = bifurcationdiagram(bp, PALC(), 2, opts_br)
163163

164164
@test bf.γ.specialpoint[1].param0.1 atol=1e-4 rtol=1e-4
165+
166+
# Test with plot variable as observable
167+
pvar = ModelingToolkit.get_var_to_name(fol)[:RHS]
168+
bp = BifurcationProblem(fol, u0, par, bif_par; plot_var = pvar)
169+
opts_br = ContinuationPar(p_min = -1.0,
170+
p_max = 1.0)
171+
bf = bifurcationdiagram(bp, PALC(), 2, opts_br)
172+
@test bf.γ.specialpoint[1].param0.1 atol=1e-4 rtol=1e-4
165173
end

0 commit comments

Comments
 (0)