Skip to content

Commit

Permalink
test: fix thermal piston test
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 22, 2024
1 parent 1827d63 commit ebdd4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Thermal/piston.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ using ModelingToolkitStandardLibrary.Blocks
# The initial value doesn't add up to absolute zero, while the rest do. To avoid
# tolerance on the latter, the test is split in two parts.
@test sol[piston.gas.Q_flow][1] + sol[piston.coolant.Q_flow][1]0 atol=1e-6
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end] ==
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end]
zeros(length(sol) - 1)
end

0 comments on commit ebdd4e1

Please sign in to comment.