Skip to content

Commit 934c894

Browse files
Merge pull request #391 from AayushSabharwal/as/fix-tests
test: fix tests of analytically solved systems
2 parents aa55a0c + 02bdcb5 commit 934c894

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

test/Mechanical/rotational.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,7 @@ end
289289
end
290290
end
291291
@mtkbuild sys = TestPosition()
292-
prob = ODEProblem(sys, [
293-
sys.inertia.phi => 0,
294-
sys.inertia.w => 0
295-
], (0, 10.0))
292+
prob = ODEProblem(sys, [], (0, 10.0))
296293
sol = solve(prob, Tsit5())
297294
@test SciMLBase.successful_retcode(sol)
298295
tv = 0:0.01:10

test/Thermal/thermal.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,7 @@ end
144144
collector, th_resistor, mass])
145145
sys = structural_simplify(coll)
146146

147-
u0 = [
148-
mass.T => 0.0
149-
]
150-
prob = ODEProblem(sys, u0, (0, 3.0))
147+
prob = ODEProblem(sys, [], (0, 3.0))
151148
sol = solve(prob, Rodas4())
152149

153150
@test SciMLBase.successful_retcode(sol)

0 commit comments

Comments
 (0)