Skip to content

Commit 76d9045

Browse files
test: account for allow_algebraic in HC tests
1 parent 0022f19 commit 76d9045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/extensions/homotopy_continuation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end
3333
eqs = [0 ~ x^2 + y^2 + 2x * y
3434
0 ~ x^2 + 4x + 4
3535
0 ~ y * z + 4x^2]
36-
@mtkbuild sys = NonlinearSystem(eqs)
36+
@mtkbuild sys=NonlinearSystem(eqs) allow_algebraic=false
3737
u0 = [x => 1.0, y => 1.0, z => 1.0]
3838
prob = HomotopyContinuationProblem(sys, u0)
3939
@test prob isa NonlinearProblem
@@ -60,7 +60,7 @@ end
6060
0 ~ x^2 + 4x + q
6161
0 ~ y * z + 4x^2 + wrapper(r)]
6262

63-
@mtkbuild sys = NonlinearSystem(eqs)
63+
@mtkbuild sys=NonlinearSystem(eqs) allow_algebraic=false
6464
prob = HomotopyContinuationProblem(sys, [x => 1.0, y => 1.0, z => 1.0],
6565
[p => 2.0, q => 4, r => Wrapper([1.0 1.0; 0.0 0.0])])
6666
@test prob.ps[p] == 2.0
@@ -78,7 +78,7 @@ end
7878
@parameters p[1:3]
7979
_x = collect(x)
8080
eqs = collect(0 .~ vec(sum(_x * _x'; dims = 2)) + collect(p))
81-
@mtkbuild sys = NonlinearSystem(eqs)
81+
@mtkbuild sys=NonlinearSystem(eqs) allow_algebraic=false
8282
prob = HomotopyContinuationProblem(sys, [x => ones(3)], [p => 1:3])
8383
@test prob[x] == ones(3)
8484
@test prob[p + x] == [2, 3, 4]

0 commit comments

Comments
 (0)