Skip to content

Commit c00c378

Browse files
test: do not build initializeprob for some tests
1 parent 3d5db18 commit c00c378

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/mtkparameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ end
293293
ps_vec = [k => [2.0, 3.0, 4.0, 5.0]]
294294
ps_scal = [k[1] => 1.0, k[2] => 2.0, k[3] => 3.0, k[4] => 4.0]
295295
oprob_scal_scal = ODEProblem(osys_scal, u0, 1.0, ps_scal)
296-
newoprob = remake(oprob_scal_scal; p = ps_vec)
296+
newoprob = remake(oprob_scal_scal; p = ps_vec, build_initializeprob = false)
297297
@test newoprob.ps[k] == [2.0, 3.0, 4.0, 5.0]
298298
end
299299

test/split_parameters.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,16 @@ eqs = [D(y) ~ dy * a
114114
sys = structural_simplify(model; split = false)
115115

116116
tspan = (0.0, t_end)
117-
prob = ODEProblem(sys, [], tspan, [])
117+
prob = ODEProblem(sys, [], tspan, []; build_initializeprob = false)
118118

119119
@test prob.p isa Vector{Float64}
120120
sol = solve(prob, ImplicitEuler());
121121
@test sol.retcode == ReturnCode.Success
122122

123123
# ------------------------ Mixed Type Conserved
124124

125-
prob = ODEProblem(sys, [], tspan, []; tofloat = false, use_union = true)
125+
prob = ODEProblem(
126+
sys, [], tspan, []; tofloat = false, use_union = true, build_initializeprob = false)
126127

127128
@test prob.p isa Tuple{Vector{Float64}, Vector{Int64}}
128129
sol = solve(prob, ImplicitEuler());

0 commit comments

Comments
 (0)