@@ -136,12 +136,11 @@ ps = [p => 1.0] # Value for `d` is missing
136136@test_throws ModelingToolkit. MissingVariablesError ODEProblem (sys, u0, tspan, ps)
137137@test_nowarn ODEProblem (sys, u0, tspan, [ps... , d => 1.0 ])
138138
139-
140139# JET tests
141140
142141# scalar parameters only
143142function level1 ()
144- @parameters p1= 0.5 [tunable = true ] p2 = 1 [tunable= true ] p3 = 3 [tunable = false ] p4= 3 [tunable = true ] y0= 1
143+ @parameters p1= 0.5 [tunable = true ] p2= 1 [tunable = true ] p3= 3 [tunable = false ] p4= 3 [tunable = true ] y0= 1
145144 @variables x (t)= 2 y (t)= y0
146145 D = Differential (t)
147146
@@ -183,14 +182,14 @@ end
183182
184183@testset " level$i " for (i, prob) in enumerate ([level1 (), level2 (), level3 ()])
185184 ps = prob. p
186- @testset " Type stability of $portion " for portion in [Tunable (), Discrete (), Constants ()]
185+ @testset " Type stability of $portion " for portion in [
186+ Tunable (), Discrete (), Constants ()]
187187 @test_call canonicalize (portion, ps)
188188 # @inferred canonicalize(portion, ps)
189- broken =
190- (i ∈ [2 ,3 ] && portion == Tunable ())
189+ broken = (i ∈ [2 , 3 ] && portion == Tunable ())
191190
192191 # broken because the size of a vector of vectors can't be determined at compile time
193- @test_opt broken= broken target_modules = (ModelingToolkit,) canonicalize (
192+ @test_opt broken= broken target_modules= (ModelingToolkit,) canonicalize (
194193 portion, ps)
195194
196195 buffer, repack, alias = canonicalize (portion, ps)
200199 @test_opt target_modules= (ModelingToolkit,) SciMLStructures. replace (
201200 portion, ps, ones (length (buffer)))
202201
203- @test_call target_modules = (ModelingToolkit,) SciMLStructures. replace! (
202+ @test_call target_modules= (ModelingToolkit,) SciMLStructures. replace! (
204203 portion, ps, ones (length (buffer)))
205204 @inferred SciMLStructures. replace! (portion, ps, ones (length (buffer)))
206205 @test_opt target_modules= (ModelingToolkit,) SciMLStructures. replace! (
0 commit comments