Skip to content

Commit 4459350

Browse files
Initialize translational acceleration sensor test (#489)
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
1 parent 2366d99 commit 4459350

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/translational.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ end
249249
eqs, t, [], []; systems = [force, source, mass, acc, acc_output]
250250
)
251251
s = complete(mtkcompile(sys))
252-
prob = ODEProblem(s, [], (0.0, pi), fully_determined = true)
252+
prob = ODEProblem(
253+
s, [s.mass.s => 0, s.mass.v => 0], (0.0, pi); fully_determined = true
254+
)
253255
sol = solve(prob, Tsit5())
254256
@test sol[sys.acc_output.u] (sol[sys.mass.f] ./ m)
255257
end

0 commit comments

Comments
 (0)