Skip to content

Commit 30845e5

Browse files
changes solver
1 parent 11bc721 commit 30845e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Thermal/thermal.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ end
129129
wall.Q_flow => 10.0
130130
]
131131
prob = ODEProblem(sys, u0, (0, 3.0))
132-
sol = solve(prob, Tsit5())
132+
sol = solve(prob, Rodas4())
133133

134134
# Heat-flow-rate is equal in magnitude
135135
# and opposite in direction
@@ -165,7 +165,7 @@ end
165165
mass.T => T_gas
166166
]
167167
prob = ODEProblem(sys, u0, (0, 3.0))
168-
sol = solve(prob, Tsit5())
168+
sol = solve(prob, Rodas4())
169169

170170
@test sol.retcode == :Success
171171
@test sol[dissipator.dT] == sol[radiator.port_a.T] - sol[radiator.port_b.T]
@@ -200,7 +200,7 @@ end
200200
mass.T => 0.0,
201201
]
202202
prob = ODEProblem(sys, u0, (0, 3.0))
203-
sol = solve(prob, Tsit5())
203+
sol = solve(prob, Rodas4())
204204

205205
@test sol.retcode == :Success
206206
@test sol[collector.port_b.Q_flow] + sol[collector.port_a1.Q_flow] + sol[collector.port_a2.Q_flow] ==

0 commit comments

Comments
 (0)