Skip to content

Commit 25917bd

Browse files
test: account for allow_algebraic in tests
1 parent 66034d6 commit 25917bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/initializationsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ end
769769
eqs = [0 ~ σ * (y - x),
770770
0 ~ x *- z) - y,
771771
0 ~ x * y - β * z]
772-
@mtkbuild ns = NonlinearSystem(eqs, [x, y, z], [σ, ρ, β])
772+
@mtkbuild ns=NonlinearSystem(eqs, [x, y, z], [σ, ρ, β]) allow_algebraic=false
773773

774774
prob = NonlinearProblem(ns, [])
775775
@test prob.f.initialization_data.update_initializeprob! === nothing
@@ -806,7 +806,7 @@ end
806806
eqs = [0 ~ p * (y - x),
807807
0 ~ x * (q - z) - y,
808808
0 ~ x * y - c * z]
809-
@mtkbuild sys = NonlinearSystem(eqs; initialization_eqs = [p^2 + q^2 + 2p * q ~ 0])
809+
@mtkbuild sys=NonlinearSystem(eqs; initialization_eqs = [p^2 + q^2 + 2p * q ~ 0]) allow_algebraic=false
810810
# @mtkbuild sys = NonlinearSystem(
811811
# [p * x^2 + q * y^3 ~ 0, x - q ~ 0]; defaults = [q => missing],
812812
# guesses = [q => 1.0], initialization_eqs = [p^2 + q^2 + 2p * q ~ 0])

0 commit comments

Comments
 (0)