We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4af6b98 commit c0b930aCopy full SHA for c0b930a
test/Thermal/piston.jl
@@ -41,8 +41,6 @@ using ModelingToolkitStandardLibrary.Blocks
41
@test SciMLBase.successful_retcode(sol)
42
# The initial value doesn't add up to absolute zero, while the rest do. To avoid
43
# tolerance on the latter, the test is split in two parts.
44
- @test sol[piston.gas.Q_flow][1] + sol[piston.coolant.Q_flow][1]≈0 atol=1e-6
45
- @test sol[piston.gas.Q_flow][2:end] +
46
- sol[piston.coolant.Q_flow][2:end]≈
47
- zeros(length(sol) - 1) atol=1e-6
+ @test sol[piston.gas.Q_flow][1]≈-sol[piston.coolant.Q_flow][1] rtol=1e-6
+ @test sol[piston.gas.Q_flow][2:end]≈-sol[piston.coolant.Q_flow][2:end] rtol=1e-6
48
end
0 commit comments