Skip to content

Commit 5ee8edb

Browse files
test: make NonlinearSystem parameter initializaiton test less temperamental
1 parent 1f1dae7 commit 5ee8edb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/initializationsystem.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -792,10 +792,10 @@ end
792792
@variables x=1.0 y=3.0
793793
@parameters p q
794794

795-
@mtkbuild sys = NonlinearSystem(
796-
[(x - p)^2 + (y - q)^3 ~ 0, x - q ~ 0]; defaults = [q => missing],
795+
@named sys = NonlinearSystem(
796+
[x + y - p ~ 0, x - q ~ 0]; defaults = [q => missing],
797797
guesses = [q => 1.0], initialization_eqs = [p^2 + q^2 + 2p * q ~ 0])
798-
798+
sys = complete(sys)
799799
for (probT, algs) in prob_alg_combinations
800800
prob = probT(sys, [], [p => 2.0])
801801
@test prob.f.initialization_data !== nothing

0 commit comments

Comments
 (0)