Skip to content

Commit

Permalink
test: fix incorrect initial values in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 17, 2024
1 parent 8f5267f commit 02bd7a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/nonlinearsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ sys = structural_simplify(ns; conservative = true)
eqs = [0 ~ σ * (y - x)
0 ~ x *- z) - y
0 ~ x * y - β * z]
guesses = [x => 1.0, y => 0.0, z => 0.0]
guesses = [x => 1.0, z => 0.0]
ps ==> 10.0, ρ => 26.0, β => 8 / 3]
@mtkbuild ns = NonlinearSystem(eqs)

Expand Down
4 changes: 1 addition & 3 deletions test/reduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ eqs = [u1 ~ u2
reducedsys = structural_simplify(sys)
@test length(observed(reducedsys)) == 2

u0 = [u1 => 1
u2 => 1
u3 => 0.3]
u0 = [u2 => 1]
pp = [2]
nlprob = NonlinearProblem(reducedsys, u0, [p => pp[1]])
reducedsol = solve(nlprob, NewtonRaphson())
Expand Down

0 comments on commit 02bd7a6

Please sign in to comment.